Debian Codegraph @

.clang-format

raw
1 # SPDX-FileCopyrightText: Stone Tickle <[email protected]>
2 # SPDX-License-Identifier: GPL-3.0-only
3 ---
4 AccessModifierOffset: -4
5 AlignAfterOpenBracket: DontAlign
6 AlignConsecutiveAssignments: false
7 AlignConsecutiveDeclarations: false
8 AlignEscapedNewlines: Left
9 AlignOperands: true
10 AlignTrailingComments: false
11 AllowAllParametersOfDeclarationOnNextLine: false
12 AllowShortBlocksOnASingleLine: false
13 AllowShortCaseLabelsOnASingleLine: true
14 AllowShortFunctionsOnASingleLine: None
15 AllowShortIfStatementsOnASingleLine: false
16 AllowShortLoopsOnASingleLine: false
17 AlwaysBreakAfterDefinitionReturnType: None
18 AlwaysBreakAfterReturnType: AllDefinitions
19 AlwaysBreakBeforeMultilineStrings: false
20 AlwaysBreakTemplateDeclarations: false
21 BinPackArguments: false
22 BinPackParameters: false
23 BraceWrapping:
24 AfterClass: false
25 AfterControlStatement: false
26 AfterEnum: false
27 AfterFunction: true
28 AfterNamespace: true
29 AfterObjCDeclaration: false
30 AfterStruct: false
31 AfterUnion: false
32 AfterExternBlock: false
33 BeforeCatch: false
34 BeforeElse: false
35 IndentBraces: false
36 SplitEmptyFunction: true
37 SplitEmptyRecord: true
38 SplitEmptyNamespace: true
39 BreakBeforeBinaryOperators: All
40 BreakBeforeBraces: Custom
41 BreakBeforeInheritanceComma: false
42 BreakBeforeTernaryOperators: false
43 BreakConstructorInitializersBeforeComma: false
44 BreakConstructorInitializers: BeforeComma
45 BreakStringLiterals: false
46 ColumnLimit: 120
47 CompactNamespaces: false
48 ConstructorInitializerAllOnOneLineOrOnePerLine: false
49 ConstructorInitializerIndentWidth: 8
50 ContinuationIndentWidth: 8
51 Cpp11BracedListStyle: false
52 DerivePointerAlignment: false
53 DisableFormat: false
54 ExperimentalAutoDetectBinPacking: false
55 FixNamespaceComments: false
56
57 ForEachMacros:
58 - 'OPTSTART'
59 - 'obj_array_flat_for_'
60 - 'obj_array_flat_for'
61 - 'obj_array_for_array'
62 - 'obj_array_for_array_'
63 - 'obj_array_for'
64 - 'obj_dict_for'
65
66 IncludeBlocks: Preserve
67 IncludeCategories:
68 - Regex: '.*'
69 Priority: 1
70 IncludeIsMainRegex: '(Test)?$'
71 IndentCaseLabels: false
72 IndentCaseBlocks: false
73 IndentGotoLabels: false
74 IndentPPDirectives: None
75 IndentWidth: 8
76 IndentWrappedFunctionNames: false
77 KeepEmptyLinesAtTheStartOfBlocks: false
78 MaxEmptyLinesToKeep: 1
79 NamespaceIndentation: None
80 ObjCBinPackProtocolList: Auto
81 ObjCBlockIndentWidth: 8
82 ObjCSpaceAfterProperty: true
83 ObjCSpaceBeforeProtocolList: true
84
85 # Taken from git's rules
86 PenaltyBreakAssignment: 10
87 PenaltyBreakBeforeFirstCallParameter: 30
88 PenaltyBreakComment: 10
89 PenaltyBreakFirstLessLess: 0
90 PenaltyBreakString: 10
91 PenaltyExcessCharacter: 100
92 PenaltyReturnTypeOnItsOwnLine: 60
93
94 PointerAlignment: Right
95 ReflowComments: false
96 SortIncludes: true
97 SortUsingDeclarations: false
98 SpaceAfterCStyleCast: false
99 SpaceAfterTemplateKeyword: true
100 SpaceBeforeAssignmentOperators: true
101 SpaceBeforeCtorInitializerColon: true
102 SpaceBeforeInheritanceColon: true
103 SpaceBeforeParens: ControlStatementsExceptForEachMacros
104 SpaceBeforeRangeBasedForLoopColon: true
105 SpaceInEmptyParentheses: false
106 SpacesBeforeTrailingComments: 1
107 SpacesInAngles: false
108 SpacesInContainerLiterals: false
109 SpacesInCStyleCastParentheses: false
110 SpacesInParentheses: false
111 SpacesInSquareBrackets: false
112 Standard: Cpp03
113 TabWidth: 8
114 UseTab: Always