mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-08 03:16:41 -04:00
Add support for clang_format options version 16. (#2062)
This commit is contained in:
parent
8672aa4aaa
commit
3f2fe22281
@ -44,6 +44,7 @@ BraceWrapping :
|
||||
SplitEmptyNamespace : true
|
||||
BreakBeforeBinaryOperators : None
|
||||
BreakBeforeBraces : Custom
|
||||
BreakBeforeConceptDeclarations : Always
|
||||
BreakBeforeTernaryOperators : true
|
||||
BreakConstructorInitializers : BeforeComma
|
||||
BreakInheritanceList : BeforeComma
|
||||
|
@ -45,6 +45,7 @@ BraceWrapping :
|
||||
SplitEmptyNamespace : true
|
||||
BreakBeforeBinaryOperators : None
|
||||
BreakBeforeBraces : Custom
|
||||
BreakBeforeConceptDeclarations : Always
|
||||
BreakBeforeTernaryOperators : true
|
||||
BreakConstructorInitializers : BeforeComma
|
||||
BreakInheritanceList : BeforeComma
|
||||
|
@ -44,6 +44,7 @@ BraceWrapping :
|
||||
SplitEmptyNamespace : true
|
||||
BreakBeforeBinaryOperators : None
|
||||
BreakBeforeBraces : Custom
|
||||
BreakBeforeConceptDeclarations : Always
|
||||
BreakBeforeTernaryOperators : true
|
||||
BreakConstructorInitializers : BeforeComma
|
||||
BreakInheritanceList : BeforeComma
|
||||
|
@ -44,6 +44,7 @@ BraceWrapping :
|
||||
SplitEmptyNamespace : true
|
||||
BreakBeforeBinaryOperators : None
|
||||
BreakBeforeBraces : Custom
|
||||
BreakBeforeConceptDeclarations : Always
|
||||
BreakBeforeTernaryOperators : true
|
||||
BreakConstructorInitializers : BeforeComma
|
||||
BreakInheritanceList : BeforeComma
|
||||
|
123
.clang-format_16
Normal file
123
.clang-format_16
Normal file
@ -0,0 +1,123 @@
|
||||
---
|
||||
AccessModifierOffset : -2
|
||||
AlignAfterOpenBracket : Align
|
||||
AlignArrayOfStructures : None
|
||||
AlignConsecutiveAssignments : Consecutive
|
||||
AlignConsecutiveBitFields : Consecutive
|
||||
AlignConsecutiveDeclarations : Consecutive
|
||||
AlignConsecutiveMacros : Consecutive
|
||||
AlignEscapedNewlines : Left
|
||||
AlignOperands : AlignAfterOperator
|
||||
AlignTrailingComments :
|
||||
Kind : Always
|
||||
OverEmptyLines : 0
|
||||
AllowAllArgumentsOnNextLine : true
|
||||
AllowAllParametersOfDeclarationOnNextLine : true
|
||||
AllowShortBlocksOnASingleLine : Empty
|
||||
AllowShortCaseLabelsOnASingleLine : true
|
||||
AllowShortEnumsOnASingleLine : true
|
||||
AllowShortFunctionsOnASingleLine : Empty
|
||||
AllowShortIfStatementsOnASingleLine : Never
|
||||
AllowShortLambdasOnASingleLine : All
|
||||
AllowShortLoopsOnASingleLine : false
|
||||
AlwaysBreakAfterReturnType : None
|
||||
AlwaysBreakBeforeMultilineStrings : true
|
||||
AlwaysBreakTemplateDeclarations : Yes
|
||||
BinPackArguments : false
|
||||
BinPackParameters : false
|
||||
BitFieldColonSpacing : Both
|
||||
BraceWrapping :
|
||||
AfterCaseLabel : true
|
||||
AfterClass : true
|
||||
AfterControlStatement : Always
|
||||
AfterEnum : true
|
||||
AfterFunction : true
|
||||
AfterNamespace : true
|
||||
AfterStruct : true
|
||||
AfterUnion : true
|
||||
AfterExternBlock : true
|
||||
BeforeCatch : true
|
||||
BeforeElse : true
|
||||
BeforeLambdaBody : true
|
||||
BeforeWhile : false
|
||||
IndentBraces : false
|
||||
SplitEmptyFunction : true
|
||||
SplitEmptyRecord : true
|
||||
SplitEmptyNamespace : true
|
||||
BreakAfterAttributes: Leave
|
||||
BreakBeforeBinaryOperators : None
|
||||
BreakBeforeBraces : Custom
|
||||
BreakBeforeConceptDeclarations : Always
|
||||
BreakBeforeInlineASMColon : OnlyMultiline
|
||||
BreakBeforeTernaryOperators : true
|
||||
BreakConstructorInitializers : BeforeComma
|
||||
BreakInheritanceList : BeforeComma
|
||||
BreakStringLiterals : false
|
||||
ColumnLimit : 160
|
||||
CompactNamespaces : false
|
||||
ConstructorInitializerIndentWidth : 2
|
||||
ContinuationIndentWidth : 2
|
||||
Cpp11BracedListStyle : false
|
||||
EmptyLineAfterAccessModifier : Never
|
||||
EmptyLineBeforeAccessModifier : LogicalBlock
|
||||
FixNamespaceComments : true
|
||||
IncludeBlocks : Regroup
|
||||
IndentAccessModifiers : false
|
||||
IndentCaseBlocks : true
|
||||
IndentCaseLabels : true
|
||||
IndentExternBlock : true
|
||||
IndentPPDirectives : AfterHash
|
||||
IndentRequiresClause : false
|
||||
IndentWidth : 2
|
||||
IndentWrappedFunctionNames : true
|
||||
InsertBraces : false
|
||||
InsertNewlineAtEOF : true
|
||||
IntegerLiteralSeparator :
|
||||
Binary : 4
|
||||
Decimal : 0
|
||||
Hex : 2
|
||||
HexMinDigits : 6
|
||||
KeepEmptyLinesAtTheStartOfBlocks : false
|
||||
LambdaBodyIndentation : Signature
|
||||
MaxEmptyLinesToKeep : 1
|
||||
NamespaceIndentation : All
|
||||
PackConstructorInitializers : NextLine
|
||||
PPIndentWidth : -1
|
||||
PointerAlignment : Middle
|
||||
ReferenceAlignment : Pointer
|
||||
ReflowComments : true
|
||||
RemoveBracesLLVM : false
|
||||
RequiresClausePosition : OwnLine
|
||||
RequiresExpressionIndentation : Keyword
|
||||
SeparateDefinitionBlocks : Always
|
||||
ShortNamespaceLines : 0
|
||||
SortIncludes : true
|
||||
SortUsingDeclarations : true
|
||||
SpaceAfterCStyleCast : false
|
||||
SpaceAfterLogicalNot : false
|
||||
SpaceAfterTemplateKeyword : true
|
||||
SpaceAroundPointerQualifiers : Both
|
||||
SpaceBeforeAssignmentOperators : true
|
||||
SpaceBeforeCaseColon : false
|
||||
SpaceBeforeCpp11BracedList : false
|
||||
SpaceBeforeCtorInitializerColon : true
|
||||
SpaceBeforeInheritanceColon : true
|
||||
SpaceBeforeParens : ControlStatements
|
||||
SpaceBeforeRangeBasedForLoopColon : true
|
||||
SpaceBeforeSquareBrackets : false
|
||||
SpaceInEmptyBlock : false
|
||||
SpaceInEmptyParentheses : false
|
||||
SpacesBeforeTrailingComments : 2
|
||||
SpacesInAngles : false
|
||||
SpacesInCStyleCastParentheses : false
|
||||
SpacesInConditionalStatement : true
|
||||
SpacesInContainerLiterals : false
|
||||
SpacesInLineCommentPrefix :
|
||||
Minimum : 1
|
||||
Maximum : -1
|
||||
SpacesInParentheses : true
|
||||
SpacesInSquareBrackets : false
|
||||
Standard : Latest
|
||||
UseCRLF : true
|
||||
UseTab : Never
|
||||
...
|
@ -97,9 +97,12 @@ if ( VULKAN_HPP_GENERATOR_BUILD )
|
||||
elseif( clangFormatVersion VERSION_LESS 15.0.0 )
|
||||
message( STATUS " Using .clang-format version 14." )
|
||||
file( READ ".clang-format_14" clangFormat )
|
||||
else()
|
||||
message(STATUS " Using .clang-format version 15." )
|
||||
elseif( clangFormatVersion VERSION_LESS 16.0.0 )
|
||||
message( STATUS " Using .clang-format version 15." )
|
||||
file( READ ".clang-format_15" clangFormat )
|
||||
else()
|
||||
message(STATUS " Using .clang-format version 16." )
|
||||
file( READ ".clang-format_16" clangFormat )
|
||||
endif()
|
||||
file( WRITE ".clang-format" ${clangFormat} )
|
||||
endif()
|
||||
|
@ -8483,6 +8483,14 @@ export namespace std
|
||||
template <>
|
||||
struct hash<VULKAN_HPP_NAMESPACE::PhysicalDeviceVertexAttributeRobustnessFeaturesEXT>;
|
||||
|
||||
//===============================================
|
||||
//=== Required exports for vk::StructureChain ===
|
||||
//===============================================
|
||||
|
||||
#if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
|
||||
using std::tuple_element;
|
||||
using std::tuple_size;
|
||||
#endif
|
||||
} // namespace std
|
||||
|
||||
// This VkFlags type is used as part of a bitfield in some structure.
|
||||
|
@ -563,7 +563,7 @@ namespace std
|
||||
|
||||
# if !defined( VULKAN_HPP_HASH_COMBINE )
|
||||
# define VULKAN_HPP_HASH_COMBINE( seed, value ) \
|
||||
seed ^= std::hash<std::decay<decltype( value )>::type>{}( value ) + 0x9e3779b9 + ( seed << 6 ) + ( seed >> 2 )
|
||||
seed ^= std::hash<std::decay<decltype( value )>::type>{}( value ) + 0x9e'37'79'b9 + ( seed << 6 ) + ( seed >> 2 )
|
||||
# endif
|
||||
|
||||
template <>
|
||||
|
@ -323,4 +323,4 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
# define VULKAN_HPP_RAII_CREATE_NOEXCEPT
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user