-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
42 lines (31 loc) · 779 Bytes
/
Copy path.clang-format
File metadata and controls
42 lines (31 loc) · 779 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
35
36
37
38
39
40
41
42
BasedOnStyle: Google
# Tab vs spaces
UseTab: Never
IndentWidth: 2
TabWidth: 2
AccessModifierOffset: -2
# Column limit
ColumnLimit: 120
# Brace placement
BreakBeforeBraces: Attach
AllowShortFunctionsOnASingleLine: Empty
# Spaces
SpaceBeforeParens: ControlStatements
SpacesInAngles: false
# Pointer/reference alignment
PointerAlignment: Right
DerivePointerAlignment: false
# Includes
SortIncludes: true
IncludeBlocks: Regroup
# Alignments
AlignConsecutiveDeclarations: false
AlignConsecutiveAssignments: false
AlignTrailingComments: false
# Empty lines
MaxEmptyLinesToKeep: 1
# Keep your own short deviations
AllowShortIfStatementsOnASingleLine: false
BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ReflowComments: false