-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
41 lines (37 loc) · 1.08 KB
/
Copy path.clang-format
File metadata and controls
41 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
BasedOnStyle: LLVM
BreakBeforeBraces: Allman
UseTab: Always
TabWidth: 4
IndentWidth: 4
ColumnLimit: 0
AlignAfterOpenBracket: Align
# Erzwingt {} bei if/for/while (ab LLVM 15+)
InsertBraces: true
# Pointer-Stil: int* ptr
PointerAlignment: Left
# Keine einzeiligen Kontrollstrukturen
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
# Weitere Optimierungen
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
IndentCaseLabels: true
IndentPPDirectives: AfterHash
SpaceAfterCStyleCast: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeCtorInitializerColon: true
AlignTrailingComments: true
BreakBeforeBinaryOperators: NonAssignment
BreakInheritanceList: AfterColon
FixNamespaceComments: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
SortIncludes: true
Standard: c++20