-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
42 lines (42 loc) · 1.03 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
40
41
42
---
BasedOnStyle: LLVM
Language: Cpp
Standard: Cpp11
TabWidth: 4
UseTab: Never
AccessModifierOffset: -4
ColumnLimit: 80
ReflowComments: false
PenaltyBreakComment: 10000
SortIncludes: false
SortUsingDeclarations: false
# indent
IndentWidth: 4
# IndentPPDirectives: BeforeHash
# alginment
AlignConsecutiveDeclarations: true
AlignConsecutiveAssignments: true
# AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
PointerAlignment: Middle
# spaces
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceAfterCStyleCast: true
SpacesInCStyleCastParentheses: false
# SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
# SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: false
...