-
Notifications
You must be signed in to change notification settings - Fork 4
/
.clang-format
34 lines (32 loc) · 1.08 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
BasedOnStyle: Google
Language: Cpp
Standard: c++17
UseTab: Never
DerivePointerAlignment: false
PointerAlignment: Left
ColumnLimit: 120
AllowShortLambdasOnASingleLine: None
AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true # if false then enums would be formatted as Allman braces style
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllArgumentsOnNextLine: false
LambdaBodyIndentation: Signature
BraceWrapping:
BeforeLambdaBody: true
AlignEscapedNewlines: Right
ContinuationIndentWidth: 2
AlignAfterOpenBracket: Align # TODO(MBkkt) Try BlockIndent clang-format 15
IncludeCategories:
- Regex: '^".*"$' # relative includes
Priority: 10
- Regex: '^<[[:alpha:]_\/]+>$' # STL
Priority: 40
- Regex: '^<.*\.hpp>$' # our library private includes
Priority: 20
- Regex: '.*' # other libraries (system headers in our case)
Priority: 50
IncludeBlocks: Regroup