-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-format
49 lines (48 loc) · 1.29 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
43
44
45
46
47
48
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
BreakBeforeTernaryOperators: true
ColumnLimit: 100
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 6
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, RANGES_FOR ]
IncludeCategories:
- Regex: '^"'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 3
- Regex: '^<.*\.hpp>'
Priority: 4
- Regex: '^<boost/[^.]*>'
Priority: 5
- Regex: '^<[^.]*>'
Priority: 6
IndentWidth: 4
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
Standard: Cpp11
TabWidth: 4
UseTab: Never