# clang-format configuration # compatible with clang-format 15 UseTab: Never ColumnLimit: 100 # Indent IndentWidth: 4 AccessModifierOffset: -4 IndentAccessModifiers: false IndentCaseLabels: true IndentGotoLabels: true IndentRequiresClause: true IndentWrappedFunctionNames: true NamespaceIndentation: None LambdaBodyIndentation: Signature BitFieldColonSpacing: Both # Insert InsertBraces: false # Align AlignAfterOpenBracket: true AlignArrayOfStructures: Left PointerAlignment: Left BreakBeforeBinaryOperators: None BreakBeforeConceptDeclarations: Always BreakBeforeTernaryOperators: true BreakConstructorInitializers: AfterColon BreakInheritanceList: AfterColon BreakStringLiterals: false CompactNamespaces: false Cpp11BracedListStyle: true EmptyLineAfterAccessModifier: Never EmptyLineBeforeAccessModifier: Always AllowAllArgumentsOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false AllowShortBlocksOnASingleLine: Always AllowShortCaseLabelsOnASingleLine: true AllowShortEnumsOnASingleLine: true AllowShortFunctionsOnASingleLine: All AllowShortIfStatementsOnASingleLine: WithoutElse AllowShortLambdasOnASingleLine: None AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: true AlwaysBreakTemplateDeclarations: Yes RequiresClausePosition: OwnLine BinPackArguments: false BinPackParameters: false # Space SeparateDefinitionBlocks: Always SpaceBeforeParens: Custom SpaceBeforeParensOptions: AfterControlStatements: false AfterForeachMacros: false AfterFunctionDeclarationName: false AfterFunctionDefinitionName: false AfterIfMacros: false AfterOverloadedOperator: true AfterRequiresInClause: true AfterRequiresInExpression: false BeforeNonEmptyParentheses: false SpaceBeforeRangeBasedForLoopColon: false SpaceBeforeSquareBrackets: false SpaceInEmptyBlock: false SpacesBeforeTrailingComments: 2 SpacesInAngles: Never SpacesInSquareBrackets: false # Order QualifierAlignment: Custom QualifierOrder: ["constexpr", "const", "inline", "static", "type"] SortIncludes: Never IncludeBlocks: Merge WhitespaceSensitiveMacros: ["PK_PROTECTED", "LUA_PROTECTED"]