-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.clang-format
32 lines (31 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
# Run manually to reformat a file:
# clang-format -i --style=file <file>
BasedOnStyle: Google
ColumnLimit: 80
IndentWidth: 4
AccessModifierOffset: -2
DerivePointerAlignment: false
# If true, empty lines at the start of blocks are kept.
KeepEmptyLinesAtTheStartOfBlocks: false
SortIncludes: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '<([A-Za-z0-9\Q/-_\E])+>'
Priority: 4
- Regex: '<(catch2|boost)\/'
Priority: 3
- Regex: '<([A-Za-z0-9.\Q/-_\E])+>'
Priority: 2
- Regex: '"([A-Za-z0-9.\Q/-_\E])+"'
Priority: 1
AllowShortLoopsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
Cpp11BracedListStyle: true
# If true, always break after the template<...> of a template declaration.
AlwaysBreakTemplateDeclarations: true
# If false, a function declaration's or function definition's parameters will
# either all be on the same line or will have one line each.
BinPackArguments: true
BreakConstructorInitializersBeforeComma: true
# The maximum number of consecutive empty lines to keep.
MaxEmptyLinesToKeep: 1