Debian Codegraph @

.clang-format

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