-
Notifications
You must be signed in to change notification settings - Fork 40
/
.clang-format
33 lines (33 loc) · 1.04 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
BasedOnStyle: Google
AccessModifierOffset: -2
AlignAfterOpenBracket: DontAlign
AlignOperands: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
BreakBeforeBraces: Allman
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 120
SortIncludes: true
IndentPPDirectives: AfterHash
PointerAlignment: Left
DerivePointerAlignment: false
IncludeCategories:
# Boost unit test must be included first if it is used
# or else there will be a compile error
- Regex: '<boost\/test\/.*>'
Priority: 0
# First block is local directory includes
- Regex: '"[[:alnum:]._\/]+"'
Priority: 1
# Second block is system includes with .h suffix. Usually dependencies.
- Regex: '<[[:alnum:]._\/]+\.h>'
Priority: 2
# STL system deps
- Regex: '<[[:alnum:]._\/]+>'
Priority: 3
# Catch all
- Regex: '.*'
Priority: 4