2024-12-06 22:34:13 +01:00
|
|
|
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
2024-12-11 00:43:14 +01:00
|
|
|
DisableFormat: true
|
2024-12-06 22:34:13 +01:00
|
|
|
Language: Cpp
|
|
|
|
BasedOnStyle: LLVM
|
|
|
|
AccessModifierOffset: -4
|
2024-12-10 21:58:58 +01:00
|
|
|
AlignAfterOpenBracket: DontAlign
|
|
|
|
AllowAllArgumentsOnNextLine: false
|
|
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
|
|
AllowShortFunctionsOnASingleLine: Empty
|
2024-12-06 22:34:13 +01:00
|
|
|
BreakBeforeBraces: Allman
|
|
|
|
BreakBeforeTernaryOperators: true
|
2024-12-10 21:58:58 +01:00
|
|
|
BreakInheritanceList: BeforeColon
|
2024-12-06 22:34:13 +01:00
|
|
|
ColumnLimit: 100
|
2024-12-10 21:58:58 +01:00
|
|
|
Cpp11BracedListStyle: false
|
2024-12-06 22:34:13 +01:00
|
|
|
EmptyLineBeforeAccessModifier: Never
|
|
|
|
FixNamespaceComments: false
|
|
|
|
IncludeBlocks: Regroup
|
|
|
|
IncludeCategories:
|
|
|
|
- Regex: "^<[a-z]*>"
|
|
|
|
Priority: 1
|
|
|
|
- Regex: "^<.*/.*>"
|
|
|
|
Priority: 2
|
|
|
|
- Regex: '^<.*\.hpp>'
|
|
|
|
Priority: 3
|
|
|
|
- Regex: '^<.*\.h>'
|
|
|
|
Priority: 4
|
|
|
|
- Regex: ".*"
|
|
|
|
Priority: 5
|
|
|
|
IndentCaseLabels: true
|
|
|
|
IndentPPDirectives: BeforeHash
|
|
|
|
IndentWidth: 4
|
|
|
|
InsertNewlineAtEOF: true
|
|
|
|
NamespaceIndentation: All
|
2024-12-11 00:43:14 +01:00
|
|
|
PackConstructorInitializers: BinPack
|
2024-12-06 22:34:13 +01:00
|
|
|
PointerAlignment: Left
|
|
|
|
ReferenceAlignment: Left
|
|
|
|
SortIncludes: CaseInsensitive
|
|
|
|
SpaceBeforeCaseColon: true
|
|
|
|
SpaceBeforeParens: ControlStatements
|