Skip to content

Commit 23b3412

Browse files
committed
add clang-format
1 parent 4a9be5f commit 23b3412

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.clang-format

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
BasedOnStyle: LLVM
2+
AlignAfterOpenBracket: Align
3+
AlignTrailingComments: true
4+
#AllowAllArgumentsOnNextLine: false
5+
AllowShortBlocksOnASingleLine: true
6+
AllowShortCaseLabelsOnASingleLine: true
7+
AllowShortFunctionsOnASingleLine: Inline
8+
AllowShortIfStatementsOnASingleLine: true
9+
#AllowShortLambdasOnASingleLine: All
10+
AllowShortLoopsOnASingleLine: false
11+
AllowShortIfStatementsOnASingleLine : false
12+
AlwaysBreakTemplateDeclarations: true
13+
AlwaysBreakAfterDefinitionReturnType: false
14+
BreakBeforeBinaryOperators: None
15+
BreakBeforeBraces: Custom
16+
BraceWrapping:
17+
AfterEnum: true
18+
AfterStruct: true
19+
SplitEmptyFunction: true
20+
AfterControlStatement: true
21+
AfterEnum: true
22+
AfterFunction: true
23+
AfterClass: true
24+
BeforeElse: true
25+
IndentWidth: 4
26+
PointerAlignment: Left
27+
TabWidth: 4
28+
UseTab: Never
29+
FixNamespaceComments: true
30+
PenaltyBreakBeforeFirstCallParameter: 10
31+
ColumnLimit: 200
32+
BinPackArguments: true
33+
BinPackParameters: true
34+
AllowAllParametersOfDeclarationOnNextLine: false
35+
IncludeBlocks: Regroup
36+
AlignConsecutiveDeclarations: false
37+
AlignConsecutiveAssignments: false
38+
AccessModifierOffset: -4
39+
Cpp11BracedListStyle: false

0 commit comments

Comments
 (0)