-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.clang-format
40 lines (40 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
---
BasedOnStyle: Chromium
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignEscapedNewlines: DontAlign
AttributeMacros:
- UNLIKELY
BinPackArguments: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
ColumnLimit: 120
Cpp11BracedListStyle: false
EmptyLineBeforeAccessModifier: Never
ForEachMacros: # It doesn't particularly matter if these are ForEachMacros or IfMacros
# No idea why test_iter doesn't need to be here but the other two do.
- testcase
- testgroup
IndentWidth: 4
InsertBraces: true
InsertNewlineAtEOF: true
InsertTrailingCommas: Wrapped
IntegerLiteralSeparator:
Binary: 4
Decimal: 3
# So that it doesn't insert it into the wrong place in __cpp numbers in compat.hh
DecimalMinDigits: 7
Hex: 4
HexMinDigits: 6
LineEnding: LF
MaxEmptyLinesToKeep: 2
RemoveParentheses: ReturnStatement
SpaceAfterTemplateKeyword: false
WhitespaceSensitiveMacros:
- STRING_NAME
- test_iter
- testcase
- testgroup
- TEST_ITEM
- DESTRINGIFY_NAME