Skip to content

Commit 97124f5

Browse files
committed
Simple clang format file
1 parent 3757f64 commit 97124f5

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

.clang-format

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
Language: Cpp
2+
BasedOnStyle: WebKit
3+
AccessModifierOffset: 0
4+
AlignAfterOpenBracket: Align
5+
AlignArrayOfStructures: Right
6+
AlignConsecutiveAssignments: AcrossComments
7+
AlignConsecutiveBitFields: Consecutive
8+
AlignConsecutiveDeclarations: AcrossComments
9+
AlignConsecutiveMacros: Consecutive
10+
AlignEscapedNewlines: Left
11+
AlignOperands: Align
12+
AllowShortCaseLabelsOnASingleLine: true
13+
AllowShortEnumsOnASingleLine: true
14+
AllowShortFunctionsOnASingleLine: All
15+
AllowShortIfStatementsOnASingleLine: OnlyFirstIf
16+
AllowShortLoopsOnASingleLine: true
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
BinPackArguments: false
21+
BitFieldColonSpacing: Both
22+
BreakBeforeBraces: Custom
23+
BraceWrapping:
24+
AfterCaseLabel: false
25+
AfterClass: false
26+
AfterControlStatement: MultiLine
27+
AfterEnum: false
28+
AfterFunction: true
29+
AfterNamespace: false
30+
AfterStruct: false
31+
AfterExternBlock: false
32+
BeforeElse: false
33+
BeforeWhile: false
34+
IndentBraces: false
35+
BreakBeforeBinaryOperators: All
36+
BreakBeforeTernaryOperators: true
37+
BreakConstructorInitializers: BeforeComma
38+
ColumnLimit: 0
39+
ConstructorInitializerIndentWidth: 2
40+
ContinuationIndentWidth: 0
41+
Cpp11BracedListStyle: true
42+
EmptyLineAfterAccessModifier: Never
43+
EmptyLineBeforeAccessModifier: Leave
44+
FixNamespaceComments: true
45+
IncludeBlocks: Preserve
46+
IndentAccessModifiers: true
47+
IndentCaseBlocks: false
48+
IndentCaseLabels: false
49+
IndentExternBlock: AfterExternBlock
50+
IndentPPDirectives: None
51+
IndentWidth: 2
52+
KeepEmptyLinesAtTheStartOfBlocks: true
53+
MaxEmptyLinesToKeep: 4
54+
NamespaceIndentation: All
55+
PackConstructorInitializers: NextLine
56+
PointerAlignment: Left
57+
QualifierAlignment: Leave
58+
ReferenceAlignment: Pointer
59+
RemoveBracesLLVM: false
60+
ReflowComments: false
61+
SeparateDefinitionBlocks: Leave
62+
SortIncludes: Never
63+
SortUsingDeclarations: true
64+
SpaceAfterCStyleCast: false
65+
SpaceAfterLogicalNot: true
66+
SpaceBeforeAssignmentOperators: true
67+
SpaceBeforeCaseColon: false
68+
SpaceBeforeCpp11BracedList: true
69+
SpaceBeforeInheritanceColon: true
70+
SpaceBeforeParens: Custom
71+
SpaceBeforeParensOptions:
72+
AfterControlStatements: true
73+
AfterFunctionDeclarationName: true
74+
AfterFunctionDefinitionName: true
75+
AfterOverloadedOperator: true
76+
BeforeNonEmptyParentheses: false
77+
SpaceBeforeRangeBasedForLoopColon: true
78+
SpaceBeforeSquareBrackets: false
79+
SpaceInEmptyBlock: true
80+
SpaceInEmptyParentheses: false
81+
SpacesBeforeTrailingComments: 2
82+
SpacesInAngles: Leave
83+
SpacesInCStyleCastParentheses: false
84+
SpacesInConditionalStatement: false
85+
SpacesInParentheses: false
86+
UseTab: Never

0 commit comments

Comments
 (0)