-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.clang-format
38 lines (38 loc) · 1.15 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
Language: Cpp
Standard: c++17
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: MultiLine
AfterFunction: true
PointerAlignment: Middle
BinPackParameters: false
BinPackArguments: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: false
PackConstructorInitializers: Never
IndentWidth: 4
ColumnLimit: 80
IncludeBlocks: Regroup
IncludeCategories:
# standard library includes: '<...>' without any '/' or '.' in the path
- Regex: '^<[^/.]*>'
Priority: 0
# covfie headers before system headers to ensure that they include what they use
- Regex: '^<covfie.*'
Priority: 2
# other system includes: '<...>' without further conditions
- Regex: '^<.*'
Priority: 1