mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-11 04:50:34 -04:00
Throw on clang_format failure; fix comment (#2070)
This commit is contained in:
parent
a854add3d8
commit
0ff63e9dc6
@ -44,7 +44,8 @@ BraceWrapping :
|
|||||||
SplitEmptyNamespace : true
|
SplitEmptyNamespace : true
|
||||||
BreakBeforeBinaryOperators : None
|
BreakBeforeBinaryOperators : None
|
||||||
BreakBeforeBraces : Custom
|
BreakBeforeBraces : Custom
|
||||||
BreakBeforeConceptDeclarations : true # This flag seems to be a boolean with clang-format 14 ?!?
|
# BreakBeforeConceptDeclarations seems to be a boolean with clang-format 14 ?!?
|
||||||
|
BreakBeforeConceptDeclarations : true
|
||||||
BreakBeforeTernaryOperators : true
|
BreakBeforeTernaryOperators : true
|
||||||
BreakConstructorInitializers : BeforeComma
|
BreakConstructorInitializers : BeforeComma
|
||||||
BreakInheritanceList : BeforeComma
|
BreakInheritanceList : BeforeComma
|
||||||
|
@ -7435,7 +7435,8 @@ std::string VulkanHppGenerator::generateEnum( std::pair<std::string, EnumData> c
|
|||||||
typeTraits = generateLayerSettingTypeTraits();
|
typeTraits = generateLayerSettingTypeTraits();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string enumTemplate = R"( // wrapper class for enum Vk${enumName}, see https://registry.khronos.org/vulkan/specs/latest/man/html/Vk${enumName}.html
|
const std::string enumTemplate =
|
||||||
|
R"( // wrapper class for enum Vk${enumName}, see https://registry.khronos.org/vulkan/specs/latest/man/html/Vk${enumName}.html
|
||||||
enum class ${enumName}${baseType}{${enumValues}};
|
enum class ${enumName}${baseType}{${enumValues}};
|
||||||
${typeTraits}
|
${typeTraits}
|
||||||
${enumUsing}
|
${enumUsing}
|
||||||
@ -12257,7 +12258,8 @@ ${deprecatedConstructors}
|
|||||||
compareOperators += generateStructCompareOperators( structure );
|
compareOperators += generateStructCompareOperators( structure );
|
||||||
}
|
}
|
||||||
|
|
||||||
static const std::string structureTemplate = R"( // wrapper struct for struct Vk${structureType}, see https://registry.khronos.org/vulkan/specs/latest/man/html/Vk${structureType}.html
|
static const std::string structureTemplate =
|
||||||
|
R"( // wrapper struct for struct Vk${structureType}, see https://registry.khronos.org/vulkan/specs/latest/man/html/Vk${structureType}.html
|
||||||
struct ${structureType}
|
struct ${structureType}
|
||||||
{
|
{
|
||||||
using NativeType = Vk${structureType};
|
using NativeType = Vk${structureType};
|
||||||
|
@ -570,7 +570,7 @@ void writeToFile( std::string const & str, std::string const & fileName )
|
|||||||
const int ret = std::system( commandString.c_str() );
|
const int ret = std::system( commandString.c_str() );
|
||||||
if ( ret != 0 )
|
if ( ret != 0 )
|
||||||
{
|
{
|
||||||
messager.message( "VulkanHppGenerator: failed to format file " + fileName + " with error <" + std::to_string( ret ) + ">\n" );
|
throw std::runtime_error( "VulkanHppGenerator: failed to format file " + fileName + " with error <" + std::to_string( ret ) + ">" );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user