Skip to content

Commit d127a85

Browse files
author
Gin
committed
add generated format file
1 parent 4bd8ead commit d127a85

File tree

1 file changed

+124
-0
lines changed

1 file changed

+124
-0
lines changed

.clang-format

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Pokémon Automation C++ Code Style Configuration
2+
# Generated by Claude Code based on analysis of existing codebase conventions
3+
4+
BasedOnStyle: Google
5+
Language: Cpp
6+
Standard: c++23
7+
8+
# Indentation and spacing
9+
IndentWidth: 4
10+
TabWidth: 4
11+
UseTab: Never
12+
ColumnLimit: 120
13+
14+
# Alignment
15+
AlignAfterOpenBracket: Align
16+
AlignArrayOfStructures: None
17+
AlignConsecutiveAssignments: None
18+
AlignConsecutiveBitFields: None
19+
AlignConsecutiveDeclarations: None
20+
AlignConsecutiveMacros: None
21+
AlignEscapedNewlines: Left
22+
AlignOperands: Align
23+
AlignTrailingComments: true
24+
PointerAlignment: Left
25+
26+
# Braces
27+
BreakBeforeBraces: Attach
28+
BraceWrapping:
29+
AfterClass: false
30+
AfterControlStatement: Never
31+
AfterEnum: false
32+
AfterFunction: false
33+
AfterNamespace: false
34+
AfterStruct: false
35+
AfterUnion: false
36+
BeforeCatch: false
37+
BeforeElse: false
38+
BeforeLambdaBody: false
39+
BeforeWhile: false
40+
IndentBraces: false
41+
SplitEmptyFunction: true
42+
SplitEmptyRecord: true
43+
SplitEmptyNamespace: true
44+
45+
# Line breaking
46+
AllowShortBlocksOnASingleLine: Empty
47+
AllowShortCaseLabelsOnASingleLine: false
48+
AllowShortEnumsOnASingleLine: true
49+
AllowShortFunctionsOnASingleLine: Inline
50+
AllowShortIfStatementsOnASingleLine: Never
51+
AllowShortLambdasOnASingleLine: All
52+
AllowShortLoopsOnASingleLine: false
53+
AlwaysBreakAfterReturnType: None
54+
AlwaysBreakBeforeMultilineStrings: false
55+
AlwaysBreakTemplateDeclarations: Yes
56+
BreakBeforeBinaryOperators: None
57+
BreakBeforeTernaryOperators: true
58+
BreakConstructorInitializers: BeforeColon
59+
BreakInheritanceList: BeforeColon
60+
BreakStringLiterals: true
61+
62+
# Spacing
63+
SpaceAfterCStyleCast: false
64+
SpaceAfterLogicalNot: false
65+
SpaceAfterTemplateKeyword: true
66+
SpaceBeforeAssignmentOperators: true
67+
SpaceBeforeCaseColon: false
68+
SpaceBeforeCpp11BracedList: false
69+
SpaceBeforeCtorInitializerColon: true
70+
SpaceBeforeInheritanceColon: true
71+
SpaceBeforeParens: ControlStatements
72+
SpaceBeforeRangeBasedForLoopColon: true
73+
SpaceBeforeSquareBrackets: false
74+
SpaceInEmptyBlock: false
75+
SpaceInEmptyParentheses: false
76+
SpacesBeforeTrailingComments: 2
77+
SpacesInAngles: Never
78+
SpacesInCStyleCastParentheses: false
79+
SpacesInConditionalStatement: false
80+
SpacesInContainerLiterals: true
81+
SpacesInParentheses: false
82+
SpacesInSquareBrackets: false
83+
84+
# Includes
85+
IncludeBlocks: Preserve
86+
SortIncludes: Never
87+
88+
# Other formatting
89+
AccessModifierOffset: -4
90+
CompactNamespaces: false
91+
ConstructorInitializerIndentWidth: 4
92+
ContinuationIndentWidth: 4
93+
Cpp11BracedListStyle: true
94+
DeriveLineEnding: true
95+
DerivePointerAlignment: false
96+
EmptyLineAfterAccessModifier: Never
97+
EmptyLineBeforeAccessModifier: LogicalBlock
98+
FixNamespaceComments: true
99+
IndentAccessModifiers: false
100+
IndentCaseBlocks: false
101+
IndentCaseLabels: true
102+
IndentExternBlock: AfterExternBlock
103+
IndentGotoLabels: true
104+
IndentPPDirectives: None
105+
IndentRequires: false
106+
IndentWrappedFunctionNames: false
107+
KeepEmptyLinesAtTheStartOfBlocks: false
108+
MaxEmptyLinesToKeep: 2
109+
NamespaceIndentation: None
110+
PenaltyBreakAssignment: 2
111+
PenaltyBreakBeforeFirstCallParameter: 1
112+
PenaltyBreakComment: 300
113+
PenaltyBreakFirstLessLess: 120
114+
PenaltyBreakString: 1000
115+
PenaltyBreakTemplateDeclaration: 10
116+
PenaltyExcessCharacter: 1000000
117+
PenaltyIndentedWhitespace: 0
118+
PenaltyReturnTypeOnItsOwnLine: 200
119+
PPIndentWidth: -1
120+
ReferenceAlignment: Pointer
121+
ReflowComments: true
122+
SeparateDefinitionBlocks: Leave
123+
ShortNamespaceLines: 1
124+
SortUsingDeclarations: true

0 commit comments

Comments
 (0)