Debian Codegraph @

src/mpt/.clang-format

raw
1 # clang-format 14
2
3 Language: Cpp
4 Standard: c++20
5
6 AccessModifierOffset: -4 #?
7 AlignAfterOpenBracket: AlwaysBreak
8 AlignArrayOfStructures: Left
9 AlignConsecutiveAssignments: false
10 AlignConsecutiveBitFields: false
11 AlignConsecutiveDeclarations: false
12 AlignConsecutiveMacros: true
13 AlignEscapedNewlines: DontAlign
14 AlignOperands: AlignAfterOperator
15 AlignTrailingComments: true
16 AllowAllArgumentsOnNextLine: true
17 AllowAllConstructorInitializersOnNextLine: true
18 AllowAllParametersOfDeclarationOnNextLine: true
19 AllowShortBlocksOnASingleLine: Never
20 AllowShortCaseLabelsOnASingleLine: false
21 AllowShortEnumsOnASingleLine: false
22 AllowShortFunctionsOnASingleLine: Empty
23 AllowShortIfStatementsOnASingleLine: false
24 AllowShortLambdasOnASingleLine: Inline
25 AllowShortLoopsOnASingleLine: false
26 AlwaysBreakAfterReturnType: None
27 AlwaysBreakBeforeMultilineStrings: true
28 AlwaysBreakTemplateDeclarations: Yes
29 AttributeMacros: []
30 BinPackArguments: true
31 BinPackParameters: false
32 BitFieldColonSpacing: Both
33 BraceWrapping:
34 AfterCaseLabel: false
35 AfterClass: false
36 AfterControlStatement: MultiLine
37 AfterEnum: false
38 AfterFunction: false
39 AfterNamespace: false
40 #AfterObjCDeclaration
41 AfterStruct: false
42 AfterUnion: false
43 AfterExternBlock: false
44 BeforeCatch: false
45 BeforeElse: false
46 BeforeLambdaBody: false
47 BeforeWhile: false
48 IndentBraces: false
49 SplitEmptyFunction: true
50 SplitEmptyRecord: false
51 SplitEmptyNamespace: true
52 #BreakAfterJavaFieldAnnotations
53 BreakBeforeBinaryOperators: NonAssignment
54 BreakBeforeBraces: Custom
55 BreakBeforeConceptDeclarations: true
56 BreakBeforeTernaryOperators: true
57 BreakConstructorInitializers: BeforeComma
58 BreakInheritanceList: BeforeComma
59 BreakStringLiterals: false
60 ColumnLimit: 0
61 CommentPragmas: '' #?
62 CompactNamespaces: false
63 ConstructorInitializerAllOnOneLineOrOnePerLine: true
64 ConstructorInitializerIndentWidth: 4 #?
65 ContinuationIndentWidth: 4 #?
66 Cpp11BracedListStyle: true
67 DeriveLineEnding: true
68 DerivePointerAlignment: false
69 EmptyLineAfterAccessModifier: Leave
70 EmptyLineBeforeAccessModifier: Leave
71 FixNamespaceComments: true
72 ForEachMacros: []
73 IfMacros: ['MPT_MAYBE_CONSTANT_IF']
74 IncludeBlocks: Preserve
75 IncludeCategories: [] #?
76 IncludeIsMainRegex: '' #?
77 IncludeIsMainSourceRegex: '' #?
78 IndentAccessModifiers: false
79 IndentCaseLabels: true
80 IndentCaseBlocks: true
81 IndentExternBlock: NoIndent
82 IndentGotoLabels: false
83 IndentPPDirectives: None
84 #IndentRequiresClause: true
85 InsertTrailingCommas: None
86 #BeforeHash
87 IndentWidth: 4
88 IndentWrappedFunctionNames: true
89 #JavaImportGroups
90 #JavaScriptQuotes
91 #JavaScriptWrapImports
92 KeepEmptyLinesAtTheStartOfBlocks: true
93 LambdaBodyIndentation: OuterScope
94 MacroBlockBegin: '^MPT_TEST_GROUP_BEGIN$' #?
95 MacroBlockEnd: '^MPT_TEST_GROUP_END$' #?
96 MaxEmptyLinesToKeep: 5
97 NamespaceIndentation: None
98 NamespaceMacros: [] #?
99 #ObjCBinPackProtocolList
100 #ObjCBlockIndentWidth
101 #ObjCBreakBeforeNestedBlockParam
102 #ObjCSpaceAfterProperty
103 #ObjCSpaceBeforeProtocolList
104 PackConstructorInitializers: Never
105 #PenaltyBreakAssignment
106 #PenaltyBreakBeforeFirstCallParameter
107 #PenaltyBreakComment
108 #PenaltyBreakFirstLessLess
109 #PenaltyBreakOpenParenthesis
110 #PenaltyBreakString
111 #PenaltyBreakTemplateDeclaration
112 #PenaltyExcessCharacter
113 #PenaltyIndentedWhitespace
114 #PenaltyReturnTypeOnItsOwnLine
115 PointerAlignment: Middle
116 PPIndentWidth: -1
117 #RawStringFormats
118 QualifierAlignment: Leave
119 #QualifierOrder: ['static', 'inline', 'constexpr', 'volatile', 'const', 'restrict', 'type']
120 ReferenceAlignment: Pointer
121 ReflowComments: false
122 RemoveBracesLLVM: false
123 SeparateDefinitionBlocks: Leave
124 ShortNamespaceLines: 1
125 SortIncludes: false
126 #SortJavaStaticImport
127 SortUsingDeclarations: true
128 SpaceAfterCStyleCast: false
129 SpaceAfterLogicalNot: false
130 SpaceAfterTemplateKeyword: true
131 SpaceAroundPointerQualifiers: Default
132 SpaceBeforeAssignmentOperators: true
133 SpaceBeforeCaseColon: false
134 SpaceBeforeCpp11BracedList: false
135 SpaceBeforeCtorInitializerColon: true
136 SpaceBeforeInheritanceColon: true
137 SpaceBeforeParens: ControlStatements
138 SpaceBeforeParensOptions:
139 AfterControlStatements: true
140 AfterForeachMacros: true
141 AfterFunctionDeclarationName: false
142 AfterFunctionDefinitionName: false
143 AfterIfMacros: true
144 AfterOverloadedOperator: false
145 #AfterRequiresInClause: false
146 #AfterRequiresInExpression: false
147 BeforeNonEmptyParentheses: false
148 SpaceBeforeRangeBasedForLoopColon: true
149 SpaceBeforeSquareBrackets: false
150 SpaceInEmptyBlock: true
151 SpaceInEmptyParentheses: false
152 SpacesBeforeTrailingComments: 1
153 SpacesInAngles: false
154 SpacesInCStyleCastParentheses: false
155 SpacesInConditionalStatement: false
156 SpacesInContainerLiterals: true
157 SpacesInLineCommentPrefix:
158 Minimum: 1
159 Maximum: -1
160 SpacesInParentheses: false
161 SpacesInSquareBrackets: false
162 StatementAttributeLikeMacros: []
163 StatementMacros: [ '_Pragma', '__pragma', 'MPT_WARNING', 'MPT_TEST_GROUP_INLINE_IDENTIFIER', 'MPT_TEST_GROUP_INLINE', 'MPT_TEST_GROUP_STATIC' ] #?
164 TabWidth: 4
165 TypenameMacros: [] #?
166 UseCRLF: false
167 UseTab: ForContinuationAndIndentation
168 WhitespaceSensitiveMacros:
169 - MPT_PP_STRINGIFY