Skip to content

Commit bc933de

Browse files
committed
[infra] add .clang-format
1 parent a4f3c07 commit bc933de

File tree

1 file changed

+142
-0
lines changed

1 file changed

+142
-0
lines changed

.clang-format

+142
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
---
2+
AccessModifierOffset: -4
3+
AlignAfterOpenBracket: Align
4+
AlignArrayOfStructures: Right
5+
AlignConsecutiveAssignments: AcrossComments
6+
AlignConsecutiveBitFields: AcrossComments
7+
AlignConsecutiveMacros: AcrossComments
8+
AlignConsecutiveDeclarations: AcrossComments
9+
AlignEscapedNewlines: Right
10+
AlignOperands: true
11+
AlignTrailingComments: true
12+
AllowAllArgumentsOnNextLine: false
13+
AllowAllConstructorInitializersOnNextLine: true
14+
AllowAllParametersOfDeclarationOnNextLine: false
15+
AllowShortBlocksOnASingleLine: Never
16+
AllowShortCaseLabelsOnASingleLine: false
17+
AllowShortEnumsOnASingleLine: false
18+
AllowShortFunctionsOnASingleLine: Inline
19+
AllowShortIfStatementsOnASingleLine: Never
20+
AllowShortLambdasOnASingleLine: All
21+
AllowShortLoopsOnASingleLine: false
22+
AlwaysBreakAfterReturnType: None
23+
AlwaysBreakBeforeMultilineStrings: true
24+
AlwaysBreakTemplateDeclarations: Yes
25+
BinPackArguments: false
26+
BinPackParameters: false
27+
BitFieldColonSpacing: Both
28+
BreakBeforeBraces: Custom
29+
BreakBeforeConceptDeclarations: true
30+
BraceWrapping:
31+
AfterCaseLabel: true
32+
AfterClass: true
33+
AfterControlStatement: Always
34+
AfterEnum: true
35+
AfterFunction: true
36+
AfterNamespace: true
37+
AfterObjCDeclaration: true
38+
AfterStruct: true
39+
AfterUnion: true
40+
AfterExternBlock: true
41+
BeforeCatch: true
42+
BeforeElse: true
43+
BeforeLambdaBody: true
44+
BeforeWhile: true
45+
IndentBraces: false
46+
SplitEmptyFunction: false
47+
SplitEmptyRecord: false
48+
SplitEmptyNamespace: false
49+
BreakBeforeBinaryOperators: None
50+
BreakBeforeConceptDeclarations: true
51+
BreakBeforeInheritanceComma: true
52+
BreakBeforeTernaryOperators: true
53+
BreakConstructorInitializers: AfterColon
54+
BreakInheritanceList: AfterColon
55+
BreakStringLiterals: true
56+
ColumnLimit: 120
57+
#CommentPragmas: 'REQUIRES'
58+
CommentPragmas: \/\/!
59+
CompactNamespaces: false
60+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
61+
ConstructorInitializerIndentWidth: 2
62+
ContinuationIndentWidth: 2
63+
Cpp11BracedListStyle: true
64+
DeriveLineEnding: false
65+
DerivePointerAlignment: false
66+
DisableFormat: false
67+
EmptyLineAfterAccessModifier: Never
68+
EmptyLineBeforeAccessModifier: LogicalBlock
69+
ExperimentalAutoDetectBinPacking: false
70+
FixNamespaceComments: true
71+
ForEachMacros:
72+
- foreach
73+
- Q_FOREACH
74+
- BOOST_FOREACH
75+
IncludeBlocks: Regroup
76+
IncludeCategories:
77+
- Regex: '^<seqan/'
78+
Priority: 3
79+
- Regex: '^".*\.hpp"'
80+
Priority: 2
81+
- Regex: '.*'
82+
Priority: 1
83+
IncludeBlocks: Preserve
84+
IncludeIsMainRegex: '(Test)?$'
85+
IndentAccessModifiers: false
86+
IndentCaseBlocks: true
87+
IndentCaseLabels: true
88+
IndentExternBlock: false
89+
IndentGotoLabels: false
90+
IndentPPDirectives: AfterHash
91+
IndentRequires: true
92+
IndentWidth: 4
93+
IndentWrappedFunctionNames: false
94+
InsertTrailingCommas: None
95+
KeepEmptyLinesAtTheStartOfBlocks: false
96+
LambdaBodyIndentation: Signature
97+
Language: Cpp
98+
MacroBlockBegin: ''
99+
MacroBlockEnd: ''
100+
MaxEmptyLinesToKeep: 1
101+
NamespaceIndentation: None
102+
PackConstructorInitializers: NextLine
103+
PenaltyBreakAssignment: 2
104+
PenaltyBreakBeforeFirstCallParameter: 19
105+
PenaltyBreakComment: 300
106+
PenaltyBreakFirstLessLess: 120
107+
PenaltyBreakString: 1000
108+
PenaltyExcessCharacter: 1000000
109+
PenaltyReturnTypeOnItsOwnLine: 200
110+
PointerAlignment: Middle
111+
QualifierAlignment: Custom
112+
QualifierOrder: ['static', 'inline', 'constexpr', 'type', 'const', 'volatile', 'restrict' ]
113+
ReferenceAlignment: Middle
114+
ReflowComments: false
115+
SeparateDefinitionBlocks: Leave
116+
SortIncludes: CaseInsensitive
117+
SortIncludes: true
118+
SortUsingDeclarations: true
119+
SpaceAfterCStyleCast: false
120+
SpaceAfterLogicalNot: false
121+
SpaceAfterTemplateKeyword: true
122+
SpaceAroundPointerQualifiers: Both
123+
SpaceBeforeAssignmentOperators: true
124+
SpaceBeforeCaseColon: false
125+
SpaceBeforeCpp11BracedList: false
126+
SpaceBeforeCtorInitializerColon: true
127+
SpaceBeforeInheritanceColon: true
128+
SpaceBeforeParens: ControlStatements
129+
SpaceBeforeRangeBasedForLoopColon: true
130+
SpaceBeforeSquareBrackets: false
131+
SpaceInEmptyBlock: false
132+
SpaceInEmptyParentheses: false
133+
SpacesBeforeTrailingComments: 1
134+
SpacesInAngles: false
135+
SpacesInCStyleCastParentheses: false
136+
SpacesInConditionalStatement: false
137+
SpacesInParentheses: false
138+
SpacesInSquareBrackets: false
139+
Standard: c++20
140+
TabWidth: 4
141+
UseCRLF: false
142+
UseTab: Never

0 commit comments

Comments
 (0)