-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.clang-format
More file actions
34 lines (28 loc) · 771 Bytes
/
.clang-format
File metadata and controls
34 lines (28 loc) · 771 Bytes
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
BasedOnStyle: Google
# why do these even exist?
IncludeBlocks: Preserve
SortIncludes: false
# "int& foo", "int* foo"
DerivePointerAlignment: false
PointerAlignment: Left
PointerBindsToType: true
# namespace foo {} // namespace foo
FixNamespaceComments: true
# indent all namespace content
NamespaceIndentation: All
# comments
ReflowComments: true
PenaltyBreakComment: 0
PenaltyBreakOpenParenthesis: 1
# personal preference
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: true
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
BreakStringLiterals: true
ColumnLimit: 160
ConstructorInitializerAllOnOneLineOrOnePerLine: true