|
1 |
| -Language: Cpp |
| 1 | +--- |
| 2 | +# Project |
| 3 | +Standard: c++17 |
| 4 | +ColumnLimit: 120 |
| 5 | + |
| 6 | +# Indentation |
2 | 7 | AccessModifierOffset: -4
|
3 |
| -AlignAfterOpenBracket: true |
4 |
| -AlignConsecutiveAssignments: false |
5 |
| -AlignConsecutiveDeclarations: false |
| 8 | +BitFieldColonSpacing: Both |
| 9 | +ContinuationIndentWidth: 4 |
| 10 | +IndentCaseLabels: true |
| 11 | +IndentCaseBlocks: false |
| 12 | +IndentExternBlock: Indent |
| 13 | +IndentPPDirectives: None |
| 14 | +IndentRequires: true |
| 15 | +IndentWidth: 4 |
| 16 | +IndentWrappedFunctionNames: true |
| 17 | +TabWidth: 4 |
| 18 | +UseTab: Never |
| 19 | + |
| 20 | +# Alignment |
| 21 | +AlignAfterOpenBracket: Align |
| 22 | +AlignConsecutiveAssignments: Consecutive |
| 23 | +AlignConsecutiveBitFields: Consecutive |
| 24 | +AlignConsecutiveDeclarations: Consecutive |
| 25 | +AlignConsecutiveMacros: Consecutive |
6 | 26 | AlignEscapedNewlines: Left
|
7 |
| -AlignOperands: true |
8 |
| -AlignTrailingComments: false |
| 27 | +AlignOperands: Align |
| 28 | +AlignTrailingComments: true |
| 29 | + |
| 30 | +# Allow |
| 31 | +AllowAllArgumentsOnNextLine: false |
| 32 | +AllowAllConstructorInitializersOnNextLine: false |
9 | 33 | AllowAllParametersOfDeclarationOnNextLine: false
|
10 |
| -AllowShortBlocksOnASingleLine: false |
| 34 | +AllowShortBlocksOnASingleLine: Never |
11 | 35 | AllowShortCaseLabelsOnASingleLine: false
|
12 |
| -AllowShortFunctionsOnASingleLine: InlineOnly |
13 |
| -AllowShortIfStatementsOnASingleLine: true |
| 36 | +AllowShortEnumsOnASingleLine: false |
| 37 | +AllowShortFunctionsOnASingleLine: None |
| 38 | +AllowShortIfStatementsOnASingleLine: Never |
14 | 39 | AllowShortLoopsOnASingleLine: false
|
| 40 | +AllowShortLambdasOnASingleLine: All |
| 41 | + |
| 42 | +# Break |
15 | 43 | AlwaysBreakAfterReturnType: None
|
16 |
| -AlwaysBreakBeforeMultilineStrings: false |
17 |
| -AlwaysBreakTemplateDeclarations: true |
18 |
| -BinPackArguments: true |
19 |
| -BinPackParameters: true |
| 44 | +AlwaysBreakBeforeMultilineStrings: true |
| 45 | +AlwaysBreakTemplateDeclarations: Yes |
| 46 | +BreakBeforeConceptDeclarations: true |
| 47 | +BreakBeforeTernaryOperators: true |
| 48 | +BreakConstructorInitializers: AfterColon |
| 49 | +BreakBeforeBinaryOperators: None |
| 50 | +BreakInheritanceList: AfterColon |
| 51 | +BreakStringLiterals: true |
| 52 | + |
| 53 | +# Initializers & arguments |
| 54 | +BinPackArguments: false |
| 55 | +BinPackParameters: false |
| 56 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 57 | +ConstructorInitializerIndentWidth: 0 |
| 58 | +Cpp11BracedListStyle: true |
| 59 | + |
| 60 | +# Braces |
20 | 61 | BreakBeforeBraces: Custom
|
21 | 62 | BraceWrapping:
|
22 |
| - AfterClass: false |
23 |
| - AfterControlStatement: false |
24 |
| - AfterEnum: false |
25 |
| - AfterFunction: false |
26 |
| - AfterNamespace: false |
27 |
| - AfterStruct: false |
| 63 | + AfterCaseLabel: true |
| 64 | + AfterClass: true |
| 65 | + AfterControlStatement: Always |
| 66 | + AfterEnum: true |
| 67 | + AfterFunction: true |
| 68 | + AfterNamespace: true |
| 69 | + AfterStruct: true |
28 | 70 | AfterUnion: true
|
29 | 71 | AfterExternBlock: true
|
30 | 72 | BeforeCatch: false
|
31 |
| - BeforeElse: false |
| 73 | + BeforeElse: true |
| 74 | + BeforeLambdaBody: true |
| 75 | + BeforeWhile: false |
32 | 76 | IndentBraces: false
|
33 |
| - SplitEmptyFunction: false |
34 |
| - SplitEmptyRecord: false |
35 |
| - SplitEmptyNamespace: false |
36 |
| -BreakBeforeBinaryOperators: None |
37 |
| -BreakBeforeTernaryOperators: false |
38 |
| -BreakConstructorInitializers: AfterColon |
39 |
| -BreakInheritanceList: AfterColon |
40 |
| -BreakStringLiterals: true |
41 |
| -ColumnLimit: 100 |
42 |
| -ConstructorInitializerAllOnOneLineOrOnePerLine: true |
43 |
| -ConstructorInitializerIndentWidth: 4 |
44 |
| -ContinuationIndentWidth: 4 |
45 |
| -Cpp11BracedListStyle: true |
46 |
| -DerivePointerAlignment: false |
47 |
| -FixNamespaceComments: false |
48 |
| -IncludeBlocks: Preserve |
49 |
| -IndentCaseLabels: false |
50 |
| -IndentPPDirectives: None |
51 |
| -IndentWidth: 4 |
52 |
| -IndentWrappedFunctionNames: false |
53 |
| -KeepEmptyLinesAtTheStartOfBlocks: false |
54 |
| -MaxEmptyLinesToKeep: 1 |
| 77 | + SplitEmptyFunction: true |
| 78 | + SplitEmptyRecord: true |
| 79 | + SplitEmptyNamespace: true |
| 80 | + |
| 81 | +# Namespaces |
| 82 | +CompactNamespaces: false |
| 83 | +FixNamespaceComments: true |
55 | 84 | NamespaceIndentation: None
|
56 |
| -PenaltyBreakBeforeFirstCallParameter: 1000 |
57 |
| -PenaltyBreakComment: 10 |
58 |
| -PenaltyReturnTypeOnItsOwnLine: 1000 |
59 |
| -PointerAlignment: Left |
60 |
| -ReflowComments: true |
| 85 | + |
| 86 | +# Derive |
| 87 | +DeriveLineEnding: false |
| 88 | +DerivePointerAlignment: false |
| 89 | + |
| 90 | +# Empty lines |
| 91 | +EmptyLineBeforeAccessModifier: Always |
| 92 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 93 | +MaxEmptyLinesToKeep: 2 |
| 94 | + |
| 95 | +# Sorting |
61 | 96 | SortIncludes: true
|
62 | 97 | SortUsingDeclarations: true
|
| 98 | + |
| 99 | +# Penalties |
| 100 | +PenaltyBreakAssignment: 1000 |
| 101 | +PenaltyBreakBeforeFirstCallParameter: 1000 |
| 102 | +PenaltyBreakComment: 200 |
| 103 | +PenaltyBreakFirstLessLess: 100 |
| 104 | +PenaltyBreakString: 1 |
| 105 | +PenaltyBreakTemplateDeclaration: 0 |
| 106 | +PenaltyExcessCharacter: 5 |
| 107 | +PenaltyIndentedWhitespace: 1 |
| 108 | +PenaltyReturnTypeOnItsOwnLine: 500 |
| 109 | + |
| 110 | +# Pointer alignment |
| 111 | +PointerAlignment: Left |
| 112 | + |
| 113 | +# Comments |
| 114 | +ReflowComments: false |
| 115 | + |
| 116 | +# Spaces |
63 | 117 | SpaceAfterCStyleCast: false
|
64 |
| -SpaceAfterTemplateKeyword: false |
| 118 | +SpaceAfterLogicalNot: false |
| 119 | +SpaceAfterTemplateKeyword: true |
| 120 | +SpaceAroundPointerQualifiers: Default |
65 | 121 | SpaceBeforeAssignmentOperators: true
|
| 122 | +SpaceBeforeCaseColon: false |
| 123 | +SpaceBeforeCpp11BracedList: false |
| 124 | +SpaceBeforeCtorInitializerColon: true |
| 125 | +SpaceBeforeInheritanceColon: true |
66 | 126 | SpaceBeforeParens: ControlStatements
|
67 | 127 | SpaceBeforeRangeBasedForLoopColon: true
|
| 128 | +SpaceBeforeSquareBrackets: false |
| 129 | +SpaceInEmptyBlock: false |
68 | 130 | SpaceInEmptyParentheses: false
|
69 | 131 | SpacesBeforeTrailingComments: 1
|
70 | 132 | SpacesInAngles: false
|
71 | 133 | SpacesInCStyleCastParentheses: false
|
| 134 | +SpacesInConditionalStatement: false |
| 135 | +SpacesInContainerLiterals: false |
72 | 136 | SpacesInParentheses: false
|
73 | 137 | SpacesInSquareBrackets: false
|
74 |
| -Standard: Cpp11 |
75 |
| -UseTab: Never |
| 138 | + |
| 139 | +# Line endings |
| 140 | +UseCRLF: false |
| 141 | + |
| 142 | +# Qualifiers (const, volatile, static, etc) |
| 143 | +QualifierAlignment: Custom |
| 144 | +QualifierOrder: ['static', 'inline', 'constexpr', 'const', 'volatile', 'type'] |
| 145 | + |
| 146 | +--- |
| 147 | +Language: ObjC |
| 148 | +IndentWidth: 4 |
| 149 | +BreakBeforeBraces: Custom |
| 150 | +BraceWrapping: |
| 151 | + AfterObjCDeclaration: true |
| 152 | + |
| 153 | +ObjCBinPackProtocolList: Never |
| 154 | +ObjCBlockIndentWidth: 4 |
| 155 | +ObjCBreakBeforeNestedBlockParam: true |
| 156 | +ObjCSpaceAfterProperty: true |
| 157 | +ObjCSpaceBeforeProtocolList: false |
| 158 | + |
| 159 | +... |
0 commit comments