-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
34 lines (28 loc) · 1.09 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
ColumnLimit: 120
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
DerivePointerAlignment: false
PointerAlignment: Left
# Make it easier to set breakpoints
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AlignAfterOpenBracket: AlwaysBreak
BinPackArguments: false
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
ReflowComments: false
AlignOperands: Align
BreakBeforeBinaryOperators: NonAssignment
PenaltyReturnTypeOnItsOwnLine: 1000 # return type and function name on same line
AlwaysBreakAfterReturnType: None
AllowAllParametersOfDeclarationOnNextLine: false
#https://stackoverflow.com/questions/69537052/clang-format-array-initializer-one-per-line
# PackConstructorInitializersStyle: CurrentLine # need clang-format 13 for this?
# AllowAllArgumentsOnNextLine: false
# table like formatting like that in path_test.cc
AlignArrayOfStructures: Right
# fixes weird issues with designated initializers
Cpp11BracedListStyle: false