Debian Codegraph @

etc/.clang-format

raw
1 # clang-format doesn't dictate the project's code style and can mess up a
2 # couple edge cases. However it comes quite close and can be used for fixing
3 # most style issues automatically on new changes via `git-clang-format`.
4 ---
5
6 Standard: c++03
7
8 ColumnLimit: 0
9
10 AccessModifierOffset: -8
11 ConstructorInitializerIndentWidth: 8
12 ContinuationIndentWidth: 8
13 IndentCaseLabels: false
14 IndentGotoLabels: false
15 IndentPPDirectives: None
16 IndentWidth: 8
17 IndentWrappedFunctionNames: false
18 NamespaceIndentation: None
19 TabWidth: 8
20 UseTab: AlignWithSpaces
21
22 AlignAfterOpenBracket: true
23 AlignConsecutiveAssignments: false
24 AlignConsecutiveDeclarations: false
25 AlignEscapedNewlines: false
26 AlignOperands: true
27 AlignTrailingComments: false
28 DerivePointerAlignment: true
29 PointerAlignment: true
30
31 AllowAllParametersOfDeclarationOnNextLine: false
32 AllowShortBlocksOnASingleLine: true
33 AllowShortCaseLabelsOnASingleLine: false
34 AllowShortFunctionsOnASingleLine: None
35 AllowShortIfStatementsOnASingleLine: false
36 AllowShortLoopsOnASingleLine: false
37
38 AlwaysBreakAfterDefinitionReturnType: None
39 AlwaysBreakAfterReturnType: None
40 AlwaysBreakBeforeMultilineStrings: false
41 AlwaysBreakTemplateDeclarations: false
42
43 BinPackArguments: true
44 BinPackParameters: true
45
46 BreakBeforeBraces: Custom
47 BraceWrapping:
48 AfterControlStatement: MultiLine
49 AfterEnum: false
50 AfterExternBlock: false
51 AfterFunction: true
52 AfterStruct: false
53 AfterUnion: false
54 BeforeElse: false
55 IndentBraces: false
56 SplitEmptyFunction: true
57
58 BreakBeforeBinaryOperators: None
59 BreakBeforeInheritanceComma: false
60 BreakBeforeTernaryOperators: false
61 BreakConstructorInitializers: BeforeComma
62 BreakConstructorInitializersBeforeComma: false
63 BreakStringLiterals: true
64
65 Cpp11BracedListStyle: false
66 MaxEmptyLinesToKeep: 1
67
68 ReflowComments: false
69
70 SortIncludes: true
71
72 SpaceAfterCStyleCast: false
73 SpaceBeforeAssignmentOperators: true
74 SpaceBeforeParens: ControlStatements
75 SpaceInEmptyParentheses: false
76 SpacesBeforeTrailingComments: 1
77 SpacesInAngles: false
78 SpacesInCStyleCastParentheses: false
79 SpacesInParentheses: false
80 SpacesInSquareBrackets: false
81
82 ...