-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
58 lines (57 loc) · 1.47 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
49
50
51
52
53
54
55
56
57
BasedOnStyle: Google
---
Language: Cpp
# AlignArrayOfStructures: Right # Too many false positive
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Inline
AlignConsecutiveAssignments:
Enabled: true
AlignCompound: true
PadOperators: true
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Right
AlignOperands: Align
BreakAfterAttributes: Leave
BreakBeforeBinaryOperators: All
BreakBeforeInlineASMColon: OnlyMultiline
BinPackArguments: false
BinPackParameters: false
ColumnLimit: 120
DerivePointerAlignment: false
EmptyLineBeforeAccessModifier: Always
IncludeCategories:
- Regex: '^".*'
Priority: 1
- Regex: "^<[[:alnum:]_]+>"
Priority: 2
- Regex: "^<experimental/[[:alnum:]_]+>"
Priority: 2
- Regex: "^<gsl/[[:alnum:]_]+>"
Priority: 2
- Regex: "^<.*"
Priority: 3
IncludeIsMainRegex: "([-_.](test|unittest|pass|fail))?$"
IncludeIsMainSourceRegex: ""
InsertBraces: true
IntegerLiteralSeparator:
Binary: 4
Decimal: 0
Hex: 2
IndentRequiresClause: true
IndentPPDirectives: AfterHash
InsertNewlineAtEOF: false
LineEnding: LF
NamespaceIndentation: Inner
PackConstructorInitializers: NextLine
RequiresClausePosition: OwnLine
PointerAlignment: Left
QualifierAlignment: Custom
QualifierOrder:
["inline", "static", "constexpr", "type", "restrict", "const", "volatile"]
ReferenceAlignment: Pointer
ReflowComments: false
RemoveSemicolon: true
RequiresExpressionIndentation: Keyword
ShortNamespaceLines: 0
---