-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
59 lines (59 loc) · 1.58 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
# We'll use defaults from the Mozilla style,
# but with 4 columns indentation.
BasedOnStyle: Mozilla
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
IndentPPDirectives: AfterHash
IndentCaseLabels: false
IndentWidth: 4
UseTab: Never
---
Language: Cpp
AccessModifierOffset: -4
### see BinPack... too
#XXX not yet possible with clang-format V7.0.1! CK
#XXX AllowAllArgumentsOnNextLine: true
#XXX AllowAllConstructorInitializersOnNextLine: true
#
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
#
### Force pointers NOT to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Right
#NO! SpaceBeforeCpp11BracedList: true
Cpp11BracedListStyle: true
FixNamespaceComments: true
#
### BinPack... args will all be on the same line
BinPackArguments: true
BinPackParameters: true
#
# from LLVM style:
###TODO We use only 123 columns!
ColumnLimit: 123
#
AllowAllParametersOfDeclarationOnNextLine: true
AlwaysBreakTemplateDeclarations: MultiLine
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
PenaltyReturnTypeOnItsOwnLine: 60
SpaceAfterTemplateKeyword: true
#
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^<(Poco|gsl|asio|doctest|zmqpp|boost|gtest|gmock|fmt|json|openssl)/'
Priority: 3
- Regex: '<[_[:alnum:]./]+>'
Priority: 4
# all other headers first!
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(_test)?$'
#
---