Debian Codegraph @

backends/apt/.clang-format

raw
1 ---
2 BasedOnStyle: LLVM
3 IndentWidth: 4
4 ---
5 Language: Cpp
6 Standard: C++11
7 ColumnLimit: 120
8 BreakBeforeBraces: Linux
9 PointerAlignment: Right
10 AlignAfterOpenBracket: AlwaysBreak
11 AllowAllParametersOfDeclarationOnNextLine: false
12 AlwaysBreakBeforeMultilineStrings: true
13 BreakBeforeBinaryOperators: NonAssignment
14 AlignArrayOfStructures: Left
15
16 # format C++11 braced lists like function calls
17 Cpp11BracedListStyle: true
18
19 # do not put a space before C++11 braced lists
20 SpaceBeforeCpp11BracedList: false
21
22 # no namespace indentation to keep indent level low
23 NamespaceIndentation: None
24
25 # we use template< without space.
26 SpaceAfterTemplateKeyword: false
27
28 # Always break after template declaration
29 AlwaysBreakTemplateDeclarations: true
30
31 # keep lambda formatting multi-line if not empty
32 AllowShortLambdasOnASingleLine: Empty
33
34 # return types should not be on their own lines
35 AlwaysBreakAfterReturnType: None
36 PenaltyReturnTypeOnItsOwnLine: 1000
37 AlwaysBreakAfterDefinitionReturnType: None
38
39 # Break constructor initializers before the colon and after the commas,
40 # and never put the all in one line.
41 BreakConstructorInitializers: BeforeColon
42 BreakInheritanceList: BeforeColon
43 PackConstructorInitializers: Never
44
45 # Place ternary operators after line breaks
46 BreakBeforeTernaryOperators: true
47
48 # No own indentation level for access modifiers
49 IndentAccessModifiers: false
50 AccessModifierOffset: -4
51
52 # Add empty line only when access modifier starts a new logical block.
53 EmptyLineBeforeAccessModifier: LogicalBlock
54
55 # Only merge empty functions.
56 AllowShortFunctionsOnASingleLine: Empty
57
58 # Don't indent case labels.
59 IndentCaseLabels: false
60
61 # No space after C-style cast
62 SpaceAfterCStyleCast: false
63
64 # Never pack arguments or parameters
65 BinPackArguments: false
66 BinPackParameters: false
67
68 # Avoid breaking around an assignment operator
69 PenaltyBreakAssignment: 150
70
71 # Left-align newline escapes, e.g. in macros
72 AlignEscapedNewlines: Left
73
74 # Enums should be one entry per line
75 AllowShortEnumsOnASingleLine: false
76
77 # we want consecutive macros to be aligned
78 AlignConsecutiveMacros: true
79
80 # never sort includes, only regroup (in rare cases)
81 IncludeBlocks: Regroup
82 SortIncludes: Never