-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
39 lines (39 loc) · 1.24 KB
/
.clang-format
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
BasedOnStyle: LLVM
IndentWidth: 4
BreakBeforeBraces: Allman
PointerAlignment: Right
ColumnLimit: 120
NamespaceIndentation: None
SortIncludes: false
UseTab: Always
TabWidth: 4
BinPackParameters: false
BinPackArguments: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignOperands: true
AlignTrailingComments: true
BreakAfterJavaFieldAnnotations: false
BreakConstructorInitializersBeforeComma: true
ContinuationIndentWidth: 4
ConstructorInitializerAllOnOneLineOrOnePerLine: true
DerivePointerAlignment: false
ExperimentalAutoDetectBinPacking: false
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
ReflowComments: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
AlwaysBreakTemplateDeclarations: Yes # Added to ensure template declarations break before the function/class definition