-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
35 lines (35 loc) · 924 Bytes
/
.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
BasedOnStyle: Google
Language: Cpp
Standard: c++17
ColumnLimit: 100
UseTab: Always
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
ConstructorInitializerIndentWidth: 4
BreakBeforeBraces: Allman
AlignAfterOpenBracket: AlwaysBreak
AlignOperands: DontAlign
AllowAllParametersOfDeclarationOnNextLine: true
DerivePointerAlignment: false
PointerAlignment: Middle
BinPackArguments: false
BinPackParameters: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortFunctionsOnASingleLine: Empty
AllowShortBlocksOnASingleLine: Empty
FixNamespaceComments: true
# Add `// namespace <name>` comments even for namespaces with only a single line. This is to match
# clang-tidy checks.
ShortNamespaceLines: 0
QualifierAlignment: Right
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<.*'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 2
SortPriority: 0
CaseSensitive: false