Skip to content

Commit e71f534

Browse files
Merge pull request #184 from insertinterestingnamehere/format
Proposed clang-format Config
2 parents a1dcb48 + 77c927c commit e71f534

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.clang-format

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
BasedOnStyle: LLVM
2+
ArrayInitializerAlignmentStyle: AIAS_Right
3+
AllowShortBlocksOnASingleLine: Always
4+
AllowShortCaseLabelsOnASingleLine: true
5+
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
6+
AllowShortLoopsOnASingleLine: true
7+
AlwaysBreakTemplateDeclarations: Yes
8+
AttributeMacros: ['Q_UNUSED', 'STACKLEFT_NOINLINE']
9+
BinPackArguments: false
10+
BinPackParameters: false
11+
BreakArrays: false
12+
BreakBeforeConceptDeclarationsStyle: Always
13+
BreakConstructorInitializers: AfterColon
14+
BreakInheritanceList: AfterColon
15+
ConstructorInitializerIndentWidth: 2
16+
ContinuationIndentWidth: 2
17+
EmptyLineBeforeAccessModifier: Never
18+
IncludeIsMainRegex: ''
19+
IndentCaseLabels: true
20+
InsertNewlineAtEOF: true
21+
KeepEmptyLinesAtTheStartOfBlocks: false
22+
KeepEmptyLinesAtEOF: true
23+
QualifierAlignment: Right
24+
QualifierOrder: ['inline', 'static', 'friend', 'constexpr', 'type', 'const', 'volatile' , 'restrict' ]
25+
RemoveSemicolon: true
26+
SeparateDefinitionBlocks: Always
27+
SortIncludes: CaseInsensitive
28+
SpaceBeforeCtorInitializerColon: false
29+
SpaceBeforeRangeBasedForLoopColon: false
30+
SpacesInContainerLiterals: false
31+

0 commit comments

Comments
 (0)