-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.clang-format
36 lines (36 loc) · 1.04 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
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 0
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
AlignTrailingComments: true
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortBlocksOnASingleLine : true
AlignConsecutiveDeclarations : true
AlignConsecutiveAssignments: AcrossEmptyLinesAndComments
AlignEscapedNewlinesLeft : true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: true
# BreakConstructorInitializersBeforeComma : true
IndentCaseLabels: true
MaxEmptyLinesToKeep : 2
# NamespaceIndentation : 3
SpacesInParentheses: false # insert spaces in parentheses`()`.
SpacesInSquareBrackets: false # insert spaces in square brackets`[]`.
SpaceInEmptyBlock: false
SpacesBeforeTrailingComments: 1 # Adjust the number of spaces as desired