Skip to content

Commit 8e87f6e

Browse files
author
Emanuele Giaquinta
committed
Add clang-format style
1 parent 6d2998d commit 8e87f6e

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.clang-format

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
AccessModifierOffset: -4
2+
AlignConsecutiveMacros: true
3+
AlignEscapedNewlines: Left
4+
AlignOperands: false
5+
AllowAllParametersOfDeclarationOnNextLine: false
6+
AllowShortFunctionsOnASingleLine: Inline
7+
AlwaysBreakBeforeMultilineStrings: false
8+
AlwaysBreakTemplateDeclarations: true
9+
BinPackArguments: true
10+
BinPackParameters: true
11+
BraceWrapping:
12+
AfterFunction: true
13+
SplitEmptyRecord: false
14+
BreakBeforeBinaryOperators: false
15+
BreakBeforeBraces: Custom
16+
BreakConstructorInitializers: BeforeComma
17+
Cpp11BracedListStyle: false
18+
IndentCaseLabels: true
19+
IndentWidth: 4
20+
PenaltyBreakBeforeFirstCallParameter: 300
21+
PenaltyReturnTypeOnItsOwnLine: 600
22+
SpaceAfterCStyleCast: true
23+
SpaceBeforeCpp11BracedList: true
24+
TabWidth: 4
25+
IncludeBlocks: Regroup
26+
IncludeCategories:
27+
- Regex: '^<async/'
28+
Priority: 2
29+
- Regex: '^<asynchttp/'
30+
Priority: 2
31+
- Regex: '^<asynctls/'
32+
Priority: 2
33+
- Regex: '^<encjson\.h>'
34+
Priority: 2
35+
- Regex: '^<fsdyn/'
36+
Priority: 2
37+
- Regex: '^<fstrace\.h>'
38+
Priority: 2
39+
- Regex: '^<nwutil\.h>'
40+
Priority: 2
41+
- Regex: '^<rotatable/'
42+
Priority: 2
43+
- Regex: '^<unixkit/'
44+
Priority: 2
45+
- Regex: '^<'
46+
Priority: 1
47+
- Regex: '.*'
48+
Priority: 3

0 commit comments

Comments
 (0)