Skip to content

Commit 650a113

Browse files
committed
Add a .clang-format
1 parent 8a5d0e6 commit 650a113

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.clang-format

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
BasedOnStyle: Microsoft
2+
SortIncludes: Never
3+
UseTab: AlignWithSpaces
4+
IndentWidth: 4
5+
IncludeBlocks: Merge
6+
AccessModifierOffset: -4
7+
ColumnLimit: 0
8+
NamespaceIndentation: Inner
9+
BreakConstructorInitializers: BeforeComma
10+
PackConstructorInitializers: Never
11+
SpaceBeforeCpp11BracedList: true
12+
IndentAccessModifiers: false
13+
LambdaBodyIndentation: OuterScope
14+
BreakBeforeBraces: Custom
15+
BraceWrapping:
16+
AfterCaseLabel: true
17+
AfterEnum: true
18+
AfterStruct: true
19+
SplitEmptyFunction: false
20+
AfterControlStatement: Always
21+
#AfterEnum: true -- breaks formatting as if it's not a value
22+
AfterFunction: true
23+
AfterNamespace: true
24+
AfterObjCDeclaration: true
25+
#AfterStruct: true
26+
AfterUnion: true
27+
AfterExternBlock: true
28+
BeforeCatch: true
29+
BeforeElse: true
30+
BeforeLambdaBody: false
31+
BeforeWhile: true
32+
IndentBraces: false
33+
#SplitEmptyRecord: false
34+
#SplitEmptyNamespace: false
35+
SpacesInContainerLiterals: false
36+
PointerAlignment: Left
37+
InsertBraces: true
38+
AllowShortBlocksOnASingleLine: true
39+
SpaceInEmptyBlock: true

0 commit comments

Comments
 (0)