-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
41 lines (41 loc) · 1.13 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
# vim: ft=yaml
---
## Supposedly supports C too, but there's no documented
## support for setting a C standard like C11, so
## the utility for C codebases may be somewhat limited.
Language: Cpp
BasedOnStyle: None
IndentWidth: 2
AccessModifierOffset: 0
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: Align
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: AllDefinitions
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: true
BinPackParameters: true
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
BreakStringLiterals: true
ColumnLimit: 120
DisableFormat: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<(sys)/'
Priority: -3
- Regex: '^<([:alnum:]+/)'
Priority: -2
- Regex: '^<'
Priority: -1
- Regex: '^"'
Priority: 0
IncludeIsMainRegex: '([_-]test)?$'