Skip to content

Commit ae032ea

Browse files
ChefKiss coding style v2
1 parent b326e74 commit ae032ea

4 files changed

Lines changed: 197 additions & 102 deletions

File tree

.clang-format

Lines changed: 103 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,74 @@
1-
AccessModifierOffset: 0
2-
AlignAfterOpenBracket: DontAlign
3-
AlignConsecutiveMacros: true
4-
AlignConsecutiveAssignments: false
5-
AlignConsecutiveDeclarations: false
6-
AlignEscapedNewlines: Left
7-
AlignOperands: true
1+
# ChefKiss Coding Style v2
2+
---
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveMacros:
6+
Enabled: true
7+
AcrossEmptyLines: false
8+
AcrossComments: false
9+
AlignCompound: true
10+
AlignFunctionPointers: true
11+
PadOperators: true
12+
AlignFunctionDeclarations: true
13+
AlignConsecutiveAssignments:
14+
Enabled: true
15+
AcrossEmptyLines: false
16+
AcrossComments: false
17+
AlignCompound: true
18+
AlignFunctionPointers: true
19+
PadOperators: true
20+
AlignFunctionDeclarations: true
21+
AlignConsecutiveDeclarations:
22+
Enabled: true
23+
AcrossEmptyLines: false
24+
AcrossComments: false
25+
AlignCompound: true
26+
AlignFunctionPointers: true
27+
PadOperators: true
28+
AlignFunctionDeclarations: true
29+
AlignEscapedNewlines: LeftWithLastLine
30+
AlignOperands: Align
831
AlignTrailingComments: true
932
AllowAllArgumentsOnNextLine: false
10-
AllowAllConstructorInitializersOnNextLine: true
1133
AllowAllParametersOfDeclarationOnNextLine: false
12-
AllowShortBlocksOnASingleLine: true
13-
AllowShortCaseLabelsOnASingleLine: false
34+
AllowShortBlocksOnASingleLine: Always
35+
AllowShortCaseLabelsOnASingleLine: true
1436
AllowShortFunctionsOnASingleLine: All
15-
AllowShortIfStatementsOnASingleLine: Always
37+
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
1638
AllowShortLambdasOnASingleLine: All
1739
AllowShortLoopsOnASingleLine: true
1840
AlwaysBreakAfterReturnType: None
1941
AlwaysBreakBeforeMultilineStrings: false
2042
AlwaysBreakTemplateDeclarations: Yes
2143
BinPackArguments: true
22-
BinPackParameters: true
23-
BreakBeforeBinaryOperators: None
24-
BreakBeforeBraces: Attach
44+
BinPackParameters: BinPack
45+
BreakBeforeBinaryOperators: NonAssignment
46+
BreakBeforeBraces: Custom
47+
BraceWrapping:
48+
AfterCaseLabel: false
49+
AfterClass: true
50+
AfterControlStatement: MultiLine
51+
AfterEnum: true
52+
AfterFunction: true
53+
AfterNamespace: true
54+
AfterObjCDeclaration: true
55+
AfterStruct: true
56+
AfterUnion: true
57+
AfterExternBlock: true
58+
BeforeCatch: true
59+
BeforeElse: true
60+
IndentBraces: false
61+
SplitEmptyFunction: false
62+
SplitEmptyRecord: false
63+
SplitEmptyNamespace: false
64+
BeforeWhile: true
65+
BeforeLambdaBody: true
2566
BreakBeforeTernaryOperators: false
26-
BreakConstructorInitializers: BeforeColon
27-
BreakInheritanceList: BeforeColon
67+
BreakConstructorInitializers: AfterColon
68+
BreakInheritanceList: AfterColon
2869
BreakStringLiterals: true
2970
ColumnLimit: 120
3071
CompactNamespaces: false
31-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
3272
ConstructorInitializerIndentWidth: 4
3373
ContinuationIndentWidth: 4
3474
Cpp11BracedListStyle: true
@@ -40,28 +80,63 @@ IndentCaseLabels: true
4080
IndentPPDirectives: BeforeHash
4181
IndentWidth: 4
4282
IndentWrappedFunctionNames: true
43-
KeepEmptyLinesAtTheStartOfBlocks: false
4483
Language: Cpp
4584
NamespaceIndentation: All
46-
PointerAlignment: Right
85+
PointerAlignment: Left
4786
ReflowComments: true
4887
SortIncludes: true
4988
SortUsingDeclarations: true
5089
SpaceAfterCStyleCast: false
5190
SpaceAfterLogicalNot: false
5291
SpaceAfterTemplateKeyword: false
5392
SpaceBeforeAssignmentOperators: true
54-
SpaceBeforeCpp11BracedList: true
93+
SpaceBeforeCpp11BracedList: false
5594
SpaceBeforeCtorInitializerColon: true
5695
SpaceBeforeInheritanceColon: true
57-
SpaceBeforeParens: ControlStatements
5896
SpaceBeforeRangeBasedForLoopColon: true
59-
SpaceInEmptyParentheses: false
6097
SpacesBeforeTrailingComments: 4
6198
SpacesInAngles: false
62-
SpacesInCStyleCastParentheses: false
63-
SpacesInContainerLiterals: false
64-
SpacesInParentheses: false
65-
SpacesInSquareBrackets: false
66-
Standard: c++17
67-
UseTab: Never
99+
SpacesInContainerLiterals: true
100+
Standard: Latest
101+
UseTab: Never
102+
AlignConsecutiveBitFields:
103+
Enabled: true
104+
AlignFunctionDeclarations: true
105+
AlignFunctionPointers: true
106+
PadOperators: true
107+
AlignCompound: true
108+
AlignConsecutiveShortCaseStatements:
109+
Enabled: true
110+
AlignCaseColons: true
111+
AlignCaseArrows: true
112+
AllowBreakBeforeNoexceptSpecifier: Always
113+
AllowShortCaseExpressionOnASingleLine: true
114+
AllowShortCompoundRequirementOnASingleLine: true
115+
AllowShortEnumsOnASingleLine: true
116+
AllowShortNamespacesOnASingleLine: true
117+
BinPackLongBracedList: true
118+
BitFieldColonSpacing: Both
119+
BreakAdjacentStringLiterals: true
120+
BreakAfterAttributes: Always
121+
RemoveEmptyLinesInUnwrappedLines: true
122+
PackConstructorInitializers: Never
123+
AlignArrayOfStructures: Right
124+
SpaceBeforeParensOptions:
125+
AfterControlStatements: true
126+
AfterForeachMacros: true
127+
AfterFunctionDeclarationName: true
128+
AfterFunctionDefinitionName: true
129+
AfterIfMacros: true
130+
AfterNot: true
131+
AfterOverloadedOperator: true
132+
AfterPlacementOperator: true
133+
AfterRequiresInClause: true
134+
AfterRequiresInExpression: true
135+
BeforeNonEmptyParentheses: false
136+
SpaceInEmptyBlock: true
137+
SpacesInParensOptions: {}
138+
WrapNamespaceBodyWithEmptyLines: Always
139+
ReferenceAlignment: Pointer
140+
QualifierAlignment: Left
141+
InsertBraces: true
142+
InsertNewlineAtEOF: true

ForgedInvariant/Plugin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#include <Headers/kern_version.hpp>
77
#include <Headers/plugin_start.hpp>
88

9-
static const char *bootargOff = "-FIOff";
10-
static const char *bootargDebug = "-FIDebug";
11-
static const char *bootargBeta = "-FIBeta";
9+
static const char* bootargOff = "-FIOff";
10+
static const char* bootargDebug = "-FIDebug";
11+
static const char* bootargBeta = "-FIBeta";
1212

13-
PluginConfiguration ADDPR(config) {
13+
PluginConfiguration ADDPR(config){
1414
xStringify(PRODUCT_NAME),
1515
parseModuleVersion(xStringify(MODULE_VERSION)),
1616
LiluAPI::AllowNormal | LiluAPI::AllowInstallerRecovery | LiluAPI::AllowSafeMode,

0 commit comments

Comments
 (0)