Skip to content

Commit 84c5ac1

Browse files
Adding a .clang-format file for this repo
1 parent acecc27 commit 84c5ac1

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

.clang-format

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
Standard: Latest
2+
AccessModifierOffset: -2
3+
AlignAfterOpenBracket: Align
4+
AlignConsecutiveAssignments: None
5+
AlignConsecutiveBitFields: None
6+
AlignConsecutiveDeclarations: None
7+
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
8+
AlignEscapedNewlines: Right
9+
AlignTrailingComments: true
10+
AllowAllArgumentsOnNextLine: false
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: Always
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortEnumsOnASingleLine: true
15+
AllowShortFunctionsOnASingleLine: Inline
16+
AllowShortIfStatementsOnASingleLine: true
17+
AllowShortLambdasOnASingleLine: All
18+
AllowShortLoopsOnASingleLine: true
19+
BreakAfterReturnType: TopLevelDefinitions
20+
AlwaysBreakBeforeMultilineStrings: true
21+
BreakTemplateDeclarations: No
22+
BinPackArguments: true
23+
BinPackParameters: true
24+
BitFieldColonSpacing: Both
25+
BreakBeforeBraces: Custom
26+
BraceWrapping:
27+
AfterCaseLabel: false
28+
AfterClass: false
29+
AfterFunction: false
30+
AfterControlStatement: false
31+
SplitEmptyFunction: false
32+
AfterEnum: false
33+
AfterNamespace: false
34+
AfterStruct: false
35+
AfterUnion: false
36+
AfterExternBlock: false
37+
BeforeCatch: true
38+
BeforeElse: true
39+
BeforeLambdaBody: false
40+
BeforeWhile: true
41+
SplitEmptyRecord: false
42+
SplitEmptyNamespace: false
43+
BreakBeforeBinaryOperators: None
44+
BreakBeforeConceptDeclarations: false
45+
BreakBeforeTernaryOperators: true
46+
BreakConstructorInitializers: BeforeColon
47+
BreakInheritanceList: BeforeColon
48+
BreakStringLiterals: true
49+
ColumnLimit: 80
50+
CompactNamespaces: false
51+
Cpp11BracedListStyle: true
52+
DerivePointerAlignment: false
53+
EmptyLineBeforeAccessModifier: LogicalBlock
54+
FixNamespaceComments: true
55+
IndentCaseLabels: false
56+
IndentExternBlock: Indent
57+
IndentRequires: false
58+
IndentWidth: 2
59+
IndentWrappedFunctionNames: false
60+
KeepEmptyLinesAtTheStartOfBlocks: false
61+
PointerAlignment: Right
62+
SortUsingDeclarations: true
63+
SpaceAfterCStyleCast: false
64+
SpaceAfterLogicalNot: false
65+
SpaceAfterTemplateKeyword: false
66+
SpaceAroundPointerQualifiers: Default
67+
SpaceBeforeAssignmentOperators: true
68+
SpaceBeforeCaseColon: false
69+
SpaceBeforeCpp11BracedList: false
70+
SpaceBeforeCtorInitializerColon: false
71+
SpaceBeforeInheritanceColon: true
72+
SpaceBeforeParens: ControlStatements
73+
SpaceBeforeRangeBasedForLoopColon: true
74+
SpaceBeforeSquareBrackets: false
75+
SpaceInEmptyBlock: false
76+
SpaceInEmptyParentheses: false
77+
SpacesInContainerLiterals: false
78+
SpacesInParens: Never
79+
SpacesInSquareBrackets: false
80+
UseTab: Never
81+
SeparateDefinitionBlocks: Always
82+
MaxEmptyLinesToKeep: 1
83+
ContinuationIndentWidth: 2
84+
SpacesBeforeTrailingComments: 2
85+
SortIncludes: true
86+
IncludeBlocks: Regroup
87+
NamespaceIndentation: None

0 commit comments

Comments
 (0)