Skip to content

Commit 4c53a43

Browse files
committed
Add the .clang-format file that is being used to the port
1 parent 7650690 commit 4c53a43

File tree

1 file changed

+103
-0
lines changed

1 file changed

+103
-0
lines changed
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
Language: Cpp
3+
AlignAfterOpenBracket: BlockIndent
4+
AlignConsecutiveAssignments: None
5+
AlignConsecutiveBitFields: AcrossEmptyLinesAndComments
6+
AlignConsecutiveDeclarations: None
7+
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
8+
AlignEscapedNewlines: Left
9+
AlignOperands: AlignAfterOperator
10+
AlignTrailingComments: true
11+
AllowAllArgumentsOnNextLine: false
12+
AllowAllParametersOfDeclarationOnNextLine: false
13+
AllowShortBlocksOnASingleLine: Never
14+
AllowShortCaseLabelsOnASingleLine: false
15+
AllowShortEnumsOnASingleLine: false
16+
AllowShortFunctionsOnASingleLine: None
17+
AllowShortIfStatementsOnASingleLine: false
18+
AllowShortLambdasOnASingleLine: All
19+
AllowShortLoopsOnASingleLine: false
20+
AlwaysBreakAfterReturnType: None
21+
AlwaysBreakBeforeMultilineStrings: false
22+
AlwaysBreakTemplateDeclarations: Yes
23+
BinPackArguments: false
24+
BinPackParameters: false
25+
BitFieldColonSpacing: Both
26+
BraceWrapping:
27+
AfterCaseLabel: true
28+
AfterClass: true
29+
AfterControlStatement: Always
30+
AfterEnum: true
31+
AfterExternBlock: false
32+
AfterFunction: true
33+
AfterNamespace: true
34+
AfterStruct: true
35+
AfterUnion: true
36+
BeforeCatch: true
37+
BeforeElse: true
38+
BeforeLambdaBody: false
39+
BeforeWhile: false
40+
IndentBraces: false
41+
SplitEmptyFunction: true
42+
SplitEmptyRecord: true
43+
SplitEmptyNamespace: true
44+
BreakBeforeBinaryOperators: None
45+
BreakBeforeBraces: Custom
46+
BreakBeforeConceptDeclarations: true
47+
BreakBeforeTernaryOperators: true
48+
BreakConstructorInitializers: BeforeColon
49+
BreakInheritanceList: BeforeColon
50+
BreakStringLiterals: true
51+
ColumnLimit: 90
52+
CompactNamespaces: false
53+
ContinuationIndentWidth: 4
54+
Cpp11BracedListStyle: false
55+
DerivePointerAlignment: false
56+
EmptyLineBeforeAccessModifier: Always
57+
FixNamespaceComments: true
58+
IncludeBlocks: Preserve
59+
IndentCaseBlocks: false
60+
IndentCaseLabels: true
61+
IndentExternBlock: NoIndent
62+
IndentGotoLabels: true
63+
IndentPPDirectives: BeforeHash
64+
IndentWidth: 4
65+
KeepEmptyLinesAtTheStartOfBlocks: false
66+
MaxEmptyLinesToKeep: 1
67+
NamespaceIndentation: None
68+
PenaltyBreakAssignment: 1000
69+
PenaltyBreakBeforeFirstCallParameter: 200
70+
PenaltyBreakComment: 50
71+
PenaltyBreakFirstLessLess: 120
72+
PenaltyBreakString: 100
73+
PenaltyBreakTemplateDeclaration: 10
74+
PenaltyExcessCharacter: 100
75+
PenaltyIndentedWhitespace: 0
76+
PenaltyReturnTypeOnItsOwnLine: 10000
77+
PointerAlignment: Middle
78+
ReflowComments: true
79+
SortIncludes: false
80+
SortUsingDeclarations: true
81+
SpaceAfterCStyleCast: true
82+
SpaceAfterLogicalNot: false
83+
SpaceAfterTemplateKeyword: false
84+
SpaceBeforeCpp11BracedList: true
85+
SpaceBeforeCtorInitializerColon: false
86+
SpaceBeforeInheritanceColon: false
87+
SpaceBeforeParens: Never
88+
SpaceBeforeRangeBasedForLoopColon: false
89+
SpaceBeforeSquareBrackets: false
90+
SpaceInEmptyBlock: false
91+
SpaceInEmptyParentheses: false
92+
SpacesBeforeTrailingComments: 1
93+
SpacesInAngles: false
94+
SpacesInConditionalStatement: true
95+
SpacesInContainerLiterals: true
96+
SpacesInCStyleCastParentheses: true
97+
SpacesInParentheses: true
98+
SpacesInSquareBrackets: true
99+
TabWidth: 4
100+
LineEnding: LF
101+
UseTab: Never
102+
...
103+

0 commit comments

Comments
 (0)