-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-format
73 lines (72 loc) · 1.75 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
BasedOnStyle: Google
---
Language: Cpp
# AlignArrayOfStructures: Right # Too many false positive
AllowBreakBeforeNoexceptSpecifier: Always
AllowShortCompoundRequirementOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Inline
AlignConsecutiveAssignments:
Enabled: true
AlignCompound: true
PadOperators: true
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Right
AlignOperands: Align
BreakAdjacentStringLiterals: true
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:
[
"friend",
"inline",
"static",
"constexpr",
"type",
"restrict",
"const",
"volatile",
]
ReferenceAlignment: Pointer
ReflowComments: false
# RemoveParentheses: MultipleParentheses # Too many false positive
RemoveSemicolon: true
RequiresExpressionIndentation: Keyword
ShortNamespaceLines: 0
StatementMacros:
- BOOST_HOF_RETURNS
---