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.
4
5
BasedOnStyle : LLVM
6
+
5
7
AccessModifierOffset : -4
6
- AlignConsecutiveAssignments : false
7
- AlignConsecutiveDeclarations : false
8
- AlignOperands : true
8
+ AlignConsecutiveAssignments : None
9
+ AlignConsecutiveBitFields : None
10
+ AlignConsecutiveDeclarations : None
11
+ AlignConsecutiveMacros : AcrossEmptyLinesAndComments
9
12
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 :
14
20
AfterCaseLabel : true
15
21
AfterClass : true
22
+ AfterFunction : true
16
23
AfterControlStatement : true
24
+ SplitEmptyFunction : true
17
25
AfterEnum : true
18
- AfterFunction : true
19
26
AfterNamespace : true
20
27
AfterStruct : true
21
28
AfterUnion : true
22
29
AfterExternBlock : true
23
- BeforeCatch : false
24
- BeforeElse : false
30
+ BeforeCatch : true
31
+ BeforeElse : true
25
32
BeforeLambdaBody : true
26
- BeforeWhile : false
27
- IndentBraces : false
28
- SplitEmptyFunction : true
33
+ BeforeWhile : true
29
34
SplitEmptyRecord : true
30
35
SplitEmptyNamespace : true
31
- BreakBeforeBraces : Custom
32
- BreakConstructorInitializers : AfterColon
33
- BreakConstructorInitializersBeforeComma : false
36
+ BreakBeforeBinaryOperators : All
37
+ BreakBeforeConceptDeclarations : false
34
38
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
46
42
IndentWidth : 4
47
- InsertNewlineAtEOF : true
48
- MacroBlockBegin : ' '
49
- MacroBlockEnd : ' '
50
- MaxEmptyLinesToKeep : 2
43
+ ContinuationIndentWidth : 8
44
+ KeepEmptyLinesAtTheStartOfBlocks : false
51
45
NamespaceIndentation : All
52
46
PointerAlignment : Left
53
- SpaceAfterCStyleCast : true
47
+ SortUsingDeclarations : true
54
48
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
55
59
SpaceBeforeRangeBasedForLoopColon : false
56
60
SpaceInEmptyParentheses : false
57
- SpacesInAngles : false
58
- SpacesInConditionalStatement : false
59
61
SpacesInCStyleCastParentheses : false
60
- SpacesInParentheses : false
61
- TabWidth : 4
62
- ...
62
+ SpacesInConditionalStatement : false
63
+ SpacesInContainerLiterals : false
64
+ SpacesInParentheses : false
0 commit comments