Merge pull request #1396 from theHamsta/fix-clang-bugs

Fix clang bugs
This commit is contained in:
Andreas Süßenbach 2022-08-30 08:59:43 +02:00 committed by GitHub
commit 19086483ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -405,6 +405,7 @@ void VulkanHppGenerator::generateVulkanRAIIHppFile() const
# define VULKAN_RAII_HPP # define VULKAN_RAII_HPP
#include <memory> #include <memory>
#include <utility> // std::exchange, std::forward
#include <vulkan/vulkan.hpp> #include <vulkan/vulkan.hpp>
#if !defined( VULKAN_HPP_RAII_NAMESPACE ) #if !defined( VULKAN_HPP_RAII_NAMESPACE )
@ -515,7 +516,7 @@ void VulkanHppGenerator::generateVulkanToStringHppFile() const
#include <vulkan/vulkan_enums.hpp> #include <vulkan/vulkan_enums.hpp>
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) ) #if __cpp_lib_format
# include <format> // std::format # include <format> // std::format
#else #else
# include <sstream> // std::stringstream # include <sstream> // std::stringstream
@ -5033,7 +5034,7 @@ std::string VulkanHppGenerator::generateEnumsToString() const
VULKAN_HPP_INLINE std::string toHexString( uint32_t value ) VULKAN_HPP_INLINE std::string toHexString( uint32_t value )
{ {
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) ) #if __cpp_lib_format
return std::format( "{:x}", value ); return std::format( "{:x}", value );
#else #else
std::stringstream stream; std::stringstream stream;

View File

@ -9,6 +9,7 @@
#define VULKAN_RAII_HPP #define VULKAN_RAII_HPP
#include <memory> #include <memory>
#include <utility> // std::exchange, std::forward
#include <vulkan/vulkan.hpp> #include <vulkan/vulkan.hpp>
#if !defined( VULKAN_HPP_RAII_NAMESPACE ) #if !defined( VULKAN_HPP_RAII_NAMESPACE )

View File

@ -10,7 +10,7 @@
#include <vulkan/vulkan_enums.hpp> #include <vulkan/vulkan_enums.hpp>
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) ) #if __cpp_lib_format
# include <format> // std::format # include <format> // std::format
#else #else
# include <sstream> // std::stringstream # include <sstream> // std::stringstream
@ -2949,7 +2949,7 @@ namespace VULKAN_HPP_NAMESPACE
VULKAN_HPP_INLINE std::string toHexString( uint32_t value ) VULKAN_HPP_INLINE std::string toHexString( uint32_t value )
{ {
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) ) #if __cpp_lib_format
return std::format( "{:x}", value ); return std::format( "{:x}", value );
#else #else
std::stringstream stream; std::stringstream stream;