Debian Codegraph @

.clang-format

raw
1 ---
2 # last update based on clang 17 docs
3 AccessModifierOffset: -8
4 AlignAfterOpenBracket: Align
5 AlignArrayOfStructures: None
6 AlignConsecutiveAssignments: false
7 AlignConsecutiveBitFields: false
8 AlignConsecutiveDeclarations: false
9 AlignConsecutiveMacros: true
10 #AlignConsecutiveShortCaseStatements: false, 17+
11 AlignEscapedNewlines: DontAlign
12 AlignOperands: false
13 AlignTrailingComments: Never
14 AllowAllArgumentsOnNextLine: true
15 AllowAllConstructorInitializersOnNextLine: true
16 AllowAllParametersOfDeclarationOnNextLine: false
17 AllowShortBlocksOnASingleLine: Empty
18 AllowShortCaseLabelsOnASingleLine: false
19 AllowShortEnumsOnASingleLine: true
20 AllowShortFunctionsOnASingleLine: Inline
21 AllowShortIfStatementsOnASingleLine: WithoutElse
22 AllowShortLambdasOnASingleLine: All
23 AllowShortLoopsOnASingleLine: true
24 AlwaysBreakAfterReturnType: None
25 AlwaysBreakBeforeMultilineStrings: false
26 AlwaysBreakTemplateDeclarations: Yes
27 AttributeMacros: ['__declspec', '__unused', '__attribute__']
28 BinPackArguments: true
29 BinPackParameters: true
30 BitFieldColonSpacing: Both
31 BreakBeforeBraces: Custom
32 BraceWrapping:
33 AfterCaseLabel: true
34 AfterClass: false
35 AfterControlStatement: Never
36 AfterEnum: false
37 AfterExternBlock: true
38 AfterFunction: true
39 AfterNamespace: false
40 AfterStruct: false
41 AfterUnion: false
42 BeforeCatch: false
43 BeforeElse: false
44 BeforeLambdaBody: false
45 BeforeWhile: false
46 IndentBraces: false
47 SplitEmptyFunction: false
48 SplitEmptyNamespace: false
49 SplitEmptyRecord: false
50 BracedInitializerIndentWidth: 8
51 BreakAfterAttributes: Leave
52 BreakBeforeBinaryOperators: None
53 BreakBeforeConceptDeclarations: Allowed
54 BreakBeforeTernaryOperators: false
55 BreakConstructorInitializers: BeforeColon
56 BreakConstructorInitializersBeforeComma: false
57 BreakInheritanceList: AfterComma
58 BreakStringLiterals: true
59 ColumnLimit: 0
60 #CommentPragmas: used to preserve special comments
61 CompactNamespaces: false
62 ConstructorInitializerIndentWidth: 8
63 ContinuationIndentWidth: 8
64 Cpp11BracedListStyle: false
65 DerivePointerAlignment: false
66 DisableFormat: false
67 EmptyLineAfterAccessModifier: Never
68 EmptyLineBeforeAccessModifier: Always
69 FixNamespaceComments: false
70 IncludeBlocks: Regroup
71 IncludeCategories:
72 - Priority: 2
73 Regex: '^"(CircularBuffer|defsounds|errors|exports|globals|ie_.*|opcode_params|overlays|Platform|plugindef|Predicates|RGBAColor|SClassID|strrefs|voodooconst|win32def)\.h"'
74 SortPriority: 0
75 - Priority: 3
76 Regex: '^"[^/]+"'
77 SortPriority: 0
78 - Priority: 4
79 Regex: '^".*/'
80 SortPriority: 0
81 - Priority: 5
82 Regex: '^<'
83 SortPriority: 0
84 - Priority: 1
85 Regex: '.*'
86 SortPriority: 0
87 IncludeIsMainRegex: $
88 IncludeIsMainSourceRegex: ''
89 IndentAccessModifiers: false
90 IndentCaseBlocks: true
91 IndentCaseLabels: true
92 IndentExternBlock: true
93 IndentGotoLabels: false
94 IndentPPDirectives: BeforeHash
95 IndentRequiresClause: true
96 IndentWidth: 8
97 IndentWrappedFunctionNames: true
98 InsertBraces: false
99 InsertNewlineAtEOF: true
100 #IntegerLiteralSeparator: 0, 17+
101 #KeepEmptyLinesAtEOF: false, 17+
102 KeepEmptyLinesAtTheStartOfBlocks: false
103 LambdaBodyIndentation: Signature
104 Language: Cpp
105 #LineStyle: LF, 17+
106 MacroBlockBegin: ''
107 MacroBlockEnd: ''
108 #Macros: 17+, for macro hacks
109 MaxEmptyLinesToKeep: 2
110 NamespaceIndentation: Inner
111 PPIndentWidth: -1
112 PackConstructorInitializers: NextLine
113 # not really needed, current values only cause the change of 1 line
114 #PenaltyBreakAssignment: 0
115 #PenaltyBreakBeforeFirstCallParameter: 21
116 #PenaltyBreakComment: 411
117 #PenaltyBreakFirstLessLess: 101
118 #PenaltyBreakOpenParenthesis:
119 #PenaltyBreakString: 460
120 #PenaltyBreakTemplateDeclaration: 10
121 #PenaltyExcessCharacter: 835460
122 #PenaltyReturnTypeOnItsOwnLine: 199
123 PointerAlignment: Left
124 QualifierAlignment: Leave
125 #QualifierOrder
126 #RawStringFormats for formatting code in raw strings
127 #ReferenceAlignment will use PointerAlignment
128 ReflowComments: false
129 RemoveBracesLLVM: false
130 #RemoveParentheses: Leave, 17+
131 RemoveSemicolon: false
132 RequiresClausePosition: OwnLine
133 RequiresExpressionIndentation: OuterScope
134 SeparateDefinitionBlocks: Leave
135 #ShortNamespaceLines: 3, useless without FixNamespaceComments
136 SortIncludes: CaseSensitive
137 SortUsingDeclarations: Never
138 SpaceAfterCStyleCast: true
139 SpaceAfterLogicalNot: false
140 SpaceAfterTemplateKeyword: false
141 SpaceAroundPointerQualifiers: Default
142 SpaceBeforeAssignmentOperators: true
143 SpaceBeforeCaseColon: false
144 SpaceBeforeCpp11BracedList: true
145 SpaceBeforeCtorInitializerColon: true
146 SpaceBeforeInheritanceColon: true
147 SpaceBeforeParens: ControlStatements
148 SpaceBeforeRangeBasedForLoopColon: true
149 SpaceBeforeSquareBrackets: false
150 SpaceInEmptyBlock: false
151 SpacesBeforeTrailingComments: 1
152 SpacesInAngles: Never
153 SpacesInContainerLiterals: true
154 #SpacesInLineCommentPrefix: -1, needs ReflowComments
155 #SpacesInParens: Never, 17+
156 SpacesInSquareBrackets: false
157 Standard: c++14
158 #StatementAttributeLikeMacros:
159 #StatementMacros
160 TabWidth: 8
161 #TypeNames: 17+, for special type names
162 #TypenameMacros
163 UseTab: ForContinuationAndIndentation
164 #WhitespaceSensitiveMacros
165 ---
166 Language: ObjC
167 ColumnLimit: 0
168 UseTab: ForContinuationAndIndentation
169 TabWidth: 8
170 IndentWidth: 8
171 AccessModifierOffset: -8
172 ContinuationIndentWidth: 8
173 IndentPPDirectives: BeforeHash
174 PointerAlignment: Left
175 SpaceInEmptyBlock: false
176 ...