AdventOfCode2024/.clang-format

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-12-06 22:34:13 +01:00
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
2024-12-10 21:58:58 +01:00
AlignAfterOpenBracket: DontAlign
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: false
2024-12-06 22:34:13 +01:00
BreakBeforeBraces: Allman
2024-12-30 22:32:50 +01:00
BreakBeforeConceptDeclarations: Always
2024-12-06 22:34:13 +01:00
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
PackConstructorInitializers: BinPack
2024-12-06 22:34:13 +01:00
PointerAlignment: Left
ReferenceAlignment: Left
SortIncludes: CaseInsensitive
SpaceBeforeCaseColon: true
SpaceBeforeParens: ControlStatements
2024-12-30 22:32:50 +01:00
# Deprecated
AlwaysBreakTemplateDeclarations: true