Commit | Line | Data |
---|---|---|
ff7ea753 | 1 | # For clang-format 13 |
35cbc592 PP |
2 | AccessModifierOffset: -4 |
3 | AlignAfterOpenBracket: Align | |
ff7ea753 PP |
4 | AlignArrayOfStructures: None |
5 | AlignConsecutiveAssignments: None | |
6 | AlignConsecutiveDeclarations: None | |
7 | AlignConsecutiveMacros: Consecutive | |
35cbc592 | 8 | AlignEscapedNewlines: Right |
ff7ea753 | 9 | AlignOperands: Align |
35cbc592 PP |
10 | AlignTrailingComments: true |
11 | AllowAllArgumentsOnNextLine: false | |
12 | AllowAllConstructorInitializersOnNextLine: false | |
13 | AllowAllParametersOfDeclarationOnNextLine: false | |
ff7ea753 | 14 | AllowShortBlocksOnASingleLine: Never |
35cbc592 | 15 | AllowShortCaseLabelsOnASingleLine: false |
ff7ea753 | 16 | AllowShortEnumsOnASingleLine: false |
35cbc592 PP |
17 | AllowShortFunctionsOnASingleLine: None |
18 | AllowShortIfStatementsOnASingleLine: Never | |
19 | AllowShortLambdasOnASingleLine: None | |
20 | AllowShortLoopsOnASingleLine: false | |
21 | AlwaysBreakAfterReturnType: None | |
22 | AlwaysBreakBeforeMultilineStrings: false | |
23 | AlwaysBreakTemplateDeclarations: Yes | |
ff7ea753 PP |
24 | AttributeMacros: [ |
25 | '_BT_LOG_PRINTFLIKE', | |
26 | 'ARGPAR_HIDDEN', | |
27 | 'BT_ASSERT_COND_DEV_FUNC', | |
28 | 'BT_ASSERT_DBG_FUNC', | |
29 | 'BT_CTF_ASSERT_PRE_FUNC', | |
30 | 'BT_EXTERN_C', | |
31 | 'BT_HIDDEN', | |
32 | 'SWIGEXPORT', | |
33 | 'SWIGUNUSED', | |
34 | 'YY_ATTRIBUTE_PURE', | |
35 | 'YY_ATTRIBUTE_UNUSED', | |
36 | 'yynoreturn', | |
37 | ] | |
35cbc592 PP |
38 | BinPackArguments: true |
39 | BinPackParameters: true | |
35cbc592 PP |
40 | BraceWrapping: |
41 | AfterCaseLabel: true | |
42 | AfterClass: true | |
43 | AfterControlStatement: Never | |
44 | AfterEnum: true | |
45 | AfterFunction: true | |
46 | AfterNamespace: false | |
47 | AfterStruct: true | |
48 | AfterUnion: true | |
49 | AfterExternBlock: false | |
50 | BeforeCatch: false | |
51 | BeforeElse: false | |
52 | BeforeLambdaBody: false | |
53 | BeforeWhile: false | |
54 | SplitEmptyFunction: true | |
55 | SplitEmptyRecord: true | |
56 | SplitEmptyNamespace: true | |
ff7ea753 PP |
57 | BreakBeforeBinaryOperators: None |
58 | BreakBeforeBraces: Custom | |
35cbc592 PP |
59 | BreakBeforeTernaryOperators: false |
60 | BreakConstructorInitializers: AfterColon | |
61 | BreakInheritanceList: AfterColon | |
62 | BreakStringLiterals: false | |
63 | ColumnLimit: 100 | |
64 | CompactNamespaces: false | |
65 | ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
66 | ConstructorInitializerIndentWidth: 4 | |
67 | ContinuationIndentWidth: 4 | |
68 | Cpp11BracedListStyle: true | |
ff7ea753 | 69 | DeriveLineEnding: false |
35cbc592 PP |
70 | DerivePointerAlignment: false |
71 | DisableFormat: false | |
ff7ea753 | 72 | EmptyLineBeforeAccessModifier: Always |
35cbc592 | 73 | FixNamespaceComments: true |
ff7ea753 PP |
74 | ForEachMacros: [ |
75 | 'bt_list_for_each', | |
76 | 'bt_list_for_each_entry', | |
77 | 'bt_list_for_each_entry_reverse', | |
78 | 'bt_list_for_each_entry_safe', | |
79 | 'bt_list_for_each_prev', | |
80 | 'bt_list_for_each_prev_safe', | |
81 | ] | |
c802cacb SM |
82 | IncludeBlocks: Regroup |
83 | IncludeCategories: | |
84 | # Babeltrace 2 public headers | |
85 | - Regex: '^<babeltrace2/.+>$' | |
86 | Priority: 3 | |
87 | # System C headers | |
88 | - Regex: '^<.+\.h>$' | |
89 | Priority: 2 | |
90 | # System C++ headers | |
91 | - Regex: '^<.+>$' | |
92 | Priority: 1 | |
93 | # Logging headers | |
94 | - Regex: '^"(logging\.hpp|logging/comp-logging\.h|logging/log\.h)"$' | |
95 | Priority: 4 | |
96 | # Common headers | |
97 | - Regex: '^"(argpar|autodisc|common|compat|cpp-common|ctfser|fd-cache|param-parse|py-common|logging|string-format)/.+"$' | |
98 | Priority: 5 | |
99 | # Plugins common headers | |
100 | - Regex: '^"plugins/common/.+"$' | |
101 | Priority: 6 | |
102 | # tap header file | |
103 | - Regex: '^"(tap/)?tap\.h"$' | |
104 | Priority: 8 | |
105 | # The rest (local headers) | |
106 | - Regex: '.+' | |
107 | Priority: 7 | |
108 | IncludeIsMainRegex: "please_dont_do_that" | |
ff7ea753 PP |
109 | IndentAccessModifiers: false |
110 | IndentCaseBlocks: false | |
35cbc592 | 111 | IndentCaseLabels: false |
ff7ea753 PP |
112 | IndentExternBlock: NoIndent |
113 | IndentGotoLabels: false | |
35cbc592 PP |
114 | IndentPPDirectives: AfterHash |
115 | IndentWidth: 4 | |
116 | IndentWrappedFunctionNames: false | |
ff7ea753 | 117 | InsertTrailingCommas: None |
35cbc592 | 118 | KeepEmptyLinesAtTheStartOfBlocks: false |
ff7ea753 | 119 | LambdaBodyIndentation: Signature |
35cbc592 PP |
120 | Language: Cpp |
121 | MaxEmptyLinesToKeep: 1 | |
122 | NamespaceIndentation: None | |
ff7ea753 PP |
123 | PPIndentWidth: 4 |
124 | PointerAlignment: Right | |
125 | ReferenceAlignment: Left | |
35cbc592 | 126 | ReflowComments: false |
c802cacb | 127 | SortIncludes: CaseInsensitive |
35cbc592 PP |
128 | SortUsingDeclarations: false |
129 | SpaceAfterCStyleCast: true | |
130 | SpaceAfterLogicalNot: false | |
131 | SpaceAfterTemplateKeyword: true | |
ff7ea753 | 132 | SpaceAroundPointerQualifiers: Both |
35cbc592 | 133 | SpaceBeforeAssignmentOperators: true |
ff7ea753 | 134 | SpaceBeforeCaseColon: false |
35cbc592 PP |
135 | SpaceBeforeCpp11BracedList: true |
136 | SpaceBeforeCtorInitializerColon: true | |
137 | SpaceBeforeInheritanceColon: true | |
138 | SpaceBeforeParens: ControlStatements | |
139 | SpaceBeforeRangeBasedForLoopColon: true | |
ff7ea753 PP |
140 | SpaceBeforeSquareBrackets: false |
141 | SpaceInEmptyBlock: true | |
35cbc592 PP |
142 | SpaceInEmptyParentheses: false |
143 | SpacesBeforeTrailingComments: 1 | |
ff7ea753 PP |
144 | SpacesInAngles: Never |
145 | SpacesInConditionalStatement: false | |
35cbc592 | 146 | SpacesInContainerLiterals: false |
ff7ea753 | 147 | SpacesInCStyleCastParentheses: false |
35cbc592 PP |
148 | SpacesInParentheses: false |
149 | SpacesInSquareBrackets: false | |
150 | Standard: Cpp11 | |
ff7ea753 | 151 | UseCRLF: false |
35cbc592 | 152 | UseTab: Never |