Skip to content

Commit ad31f86

Browse files
authored
clang: Add clang format file (#344)
Lets start with this version of the file. We can update all the source after this is merged. Signed-off-by: Adit Ranadive <[email protected]>
1 parent 23ed7ae commit ad31f86

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.clang-format

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
AccessModifierOffset: -4
3+
AlignAfterOpenBracket: Align
4+
AlignConsecutiveAssignments: false
5+
AlignConsecutiveDeclarations: false
6+
AlignEscapedNewlines: Left
7+
AlignOperands: DontAlign
8+
AlignTrailingComments: false
9+
AllowAllParametersOfDeclarationOnNextLine: false
10+
AllowShortBlocksOnASingleLine: Empty
11+
AllowShortCaseLabelsOnASingleLine: false
12+
AllowShortFunctionsOnASingleLine: Empty
13+
AllowShortIfStatementsOnASingleLine: false
14+
AllowShortLoopsOnASingleLine: false
15+
AlwaysBreakAfterReturnType: All
16+
AlwaysBreakBeforeMultilineStrings: false
17+
AlwaysBreakTemplateDeclarations: false
18+
BinPackArguments: false
19+
BinPackParameters: false
20+
BreakBeforeBraces: Custom
21+
BraceWrapping:
22+
AfterClass: false
23+
AfterControlStatement: false
24+
AfterEnum: false
25+
AfterFunction: false
26+
AfterNamespace: false
27+
AfterObjCDeclaration: false
28+
AfterStruct: false
29+
AfterUnion: false
30+
AfterExternBlock: false
31+
BeforeCatch: true
32+
BeforeElse: false
33+
BeforeLambdaBody: false
34+
IndentBraces: false
35+
BreakBeforeBinaryOperators: None
36+
BreakBeforeTernaryOperators: false
37+
BreakConstructorInitializers: AfterColon
38+
BreakStringLiterals: true
39+
ColumnLimit: 100
40+
CompactNamespaces: false
41+
ConstructorInitializerIndentWidth: 8
42+
ContinuationIndentWidth: 8
43+
DerivePointerAlignment: false
44+
IndentCaseLabels: false
45+
IndentPPDirectives: None
46+
IndentWidth: 4
47+
IndentWrappedFunctionNames: false
48+
MaxEmptyLinesToKeep: 2
49+
NamespaceIndentation: Inner
50+
51+
PackConstructorInitializers: CurrentLine
52+
PointerAlignment: Right
53+
ReferenceAlignment: Right
54+
ReflowComments: true
55+
SortIncludes: false
56+
SortUsingDeclarations: false
57+
SpaceAfterCStyleCast: false
58+
SpaceAfterTemplateKeyword: false
59+
SpaceBeforeAssignmentOperators: true
60+
SpaceBeforeCtorInitializerColon: true
61+
SpaceBeforeInheritanceColon: true
62+
SpaceBeforeParens: ControlStatements
63+
SpaceBeforeRangeBasedForLoopColon: true
64+
SpaceInEmptyParentheses: false
65+
SpacesBeforeTrailingComments: 1
66+
SpacesInAngles: false
67+
SpacesInContainerLiterals: false
68+
SpacesInSquareBrackets: false
69+
TabWidth: 4
70+
UseTab: Never
71+
...

0 commit comments

Comments
 (0)