Skip to content

Commit dd731b6

Browse files
committed
updated clang format
1 parent b06fd00 commit dd731b6

File tree

1 file changed

+42
-40
lines changed

1 file changed

+42
-40
lines changed

.clang-format

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,64 @@
1-
# Generated from CLion C/C++ Code Style settings
2-
---
3-
Language: Cpp
1+
# Generated by CLion for Stroustrup
2+
# The Stroustrup style, named after Bjarne Stroustrup, the creator of C++, is similar to the K&R style but differs
3+
# in its treatment of the class definitions and the placement of braces in certain contexts. The opening brace is
4+
# placed on the same line as the control statement, and the closing brace is on its own line.
45
BasedOnStyle: LLVM
6+
57
AccessModifierOffset: -4
6-
AlignConsecutiveAssignments: false
7-
AlignConsecutiveDeclarations: false
8-
AlignOperands: true
8+
AlignConsecutiveAssignments: None
9+
AlignConsecutiveBitFields: None
10+
AlignConsecutiveDeclarations: None
11+
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
912
AlignTrailingComments: false
10-
AllowShortBlocksOnASingleLine: false
11-
AllowShortFunctionsOnASingleLine: None
12-
AlwaysBreakTemplateDeclarations: Yes
13-
BraceWrapping:
13+
AllowShortBlocksOnASingleLine: Always
14+
AllowShortFunctionsOnASingleLine: Inline
15+
AllowShortIfStatementsOnASingleLine: true
16+
AllowShortLoopsOnASingleLine: true
17+
AlwaysBreakTemplateDeclarations: No
18+
BreakBeforeBraces: Custom
19+
BraceWrapping:
1420
AfterCaseLabel: true
1521
AfterClass: true
22+
AfterFunction: true
1623
AfterControlStatement: true
24+
SplitEmptyFunction: true
1725
AfterEnum: true
18-
AfterFunction: true
1926
AfterNamespace: true
2027
AfterStruct: true
2128
AfterUnion: true
2229
AfterExternBlock: true
23-
BeforeCatch: false
24-
BeforeElse: false
30+
BeforeCatch: true
31+
BeforeElse: true
2532
BeforeLambdaBody: true
26-
BeforeWhile: false
27-
IndentBraces: false
28-
SplitEmptyFunction: true
33+
BeforeWhile: true
2934
SplitEmptyRecord: true
3035
SplitEmptyNamespace: true
31-
BreakBeforeBraces: Custom
32-
BreakConstructorInitializers: AfterColon
33-
BreakConstructorInitializersBeforeComma: false
36+
BreakBeforeBinaryOperators: All
37+
BreakBeforeConceptDeclarations: false
3438
ColumnLimit: 120
35-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
36-
ContinuationIndentWidth: 8
37-
IncludeCategories:
38-
- Regex: '^<.*'
39-
Priority: 1
40-
- Regex: '^".*'
41-
Priority: 2
42-
- Regex: '.*'
43-
Priority: 3
44-
IncludeIsMainRegex: '([-_](test|unittest))?$'
45-
IndentCaseLabels: true
39+
IncludeBlocks: Merge
40+
IndentExternBlock: Indent
41+
IndentRequiresClause: false
4642
IndentWidth: 4
47-
InsertNewlineAtEOF: true
48-
MacroBlockBegin: ''
49-
MacroBlockEnd: ''
50-
MaxEmptyLinesToKeep: 2
43+
ContinuationIndentWidth: 8
44+
KeepEmptyLinesAtTheStartOfBlocks: false
5145
NamespaceIndentation: All
5246
PointerAlignment: Left
53-
SpaceAfterCStyleCast: true
47+
SortUsingDeclarations: true
5448
SpaceAfterTemplateKeyword: false
49+
SpaceBeforeCtorInitializerColon: false
50+
SpaceBeforeParens: Custom
51+
SpaceBeforeParensOptions:
52+
AfterControlStatements: true
53+
AfterFunctionDeclarationName: false
54+
AfterFunctionDefinitionName: false
55+
AfterForeachMacros: true
56+
AfterIfMacros: true
57+
AfterOverloadedOperator: false
58+
BeforeNonEmptyParentheses: false
5559
SpaceBeforeRangeBasedForLoopColon: false
5660
SpaceInEmptyParentheses: false
57-
SpacesInAngles: false
58-
SpacesInConditionalStatement: false
5961
SpacesInCStyleCastParentheses: false
60-
SpacesInParentheses: false
61-
TabWidth: 4
62-
...
62+
SpacesInConditionalStatement: false
63+
SpacesInContainerLiterals: false
64+
SpacesInParentheses: false

0 commit comments

Comments
 (0)