Skip to content

Commit 060f145

Browse files
committed
Add clang-format configuration
1 parent 2466073 commit 060f145

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.clang-format

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
BasedOnStyle: WebKit
3+
BreakBeforeBraces: Custom
4+
BraceWrapping:
5+
AfterCaseLabel: true
6+
AfterClass: true
7+
AfterControlStatement: true
8+
AfterEnum: true
9+
AfterFunction: true
10+
AfterNamespace: false
11+
AfterObjCDeclaration: false
12+
AfterStruct: true
13+
AfterUnion: true
14+
AfterExternBlock: false
15+
BeforeCatch: true
16+
BeforeElse: true
17+
BeforeLambdaBody: true
18+
BeforeWhile: true
19+
IndentBraces: false
20+
SplitEmptyFunction: true
21+
SplitEmptyRecord: true
22+
SplitEmptyNamespace: true
23+
AlignConsecutiveMacros : true
24+
AlignTrailingComments : true
25+
AllowShortCaseLabelsOnASingleLine : false
26+
AllowShortEnumsOnASingleLine : true
27+
AllowShortFunctionsOnASingleLine : Inline
28+
AllowShortLambdasOnASingleLine : All
29+
AlwaysBreakTemplateDeclarations : Yes
30+
BreakConstructorInitializersBeforeComma: true
31+
BreakStringLiterals: false
32+
ColumnLimit: '90'
33+
FixNamespaceComments: 'true'
34+
IndentWidth: '4'
35+
KeepEmptyLinesAtTheStartOfBlocks: 'false'
36+
Language: Cpp
37+
MaxEmptyLinesToKeep: '2'
38+
NamespaceIndentation: None
39+
PointerAlignment: Left
40+
ReflowComments: 'false'
41+
SortIncludes: false
42+
SpaceBeforeCpp11BracedList : false
43+
Standard: Latest
44+
UseTab: Never
45+
46+
...

0 commit comments

Comments
 (0)