Fix: cpp-common/bt2c/logging.hpp: don't set `_mSelfComp` when creating `Logger` for...
[babeltrace.git] / .clang-format
1 # For clang-format 13
2 AccessModifierOffset: -4
3 AlignAfterOpenBracket: Align
4 AlignArrayOfStructures: None
5 AlignConsecutiveAssignments: None
6 AlignConsecutiveDeclarations: None
7 AlignConsecutiveMacros: Consecutive
8 AlignEscapedNewlines: Right
9 AlignOperands: Align
10 AlignTrailingComments: true
11 AllowAllArgumentsOnNextLine: false
12 AllowAllConstructorInitializersOnNextLine: false
13 AllowAllParametersOfDeclarationOnNextLine: false
14 AllowShortBlocksOnASingleLine: Never
15 AllowShortCaseLabelsOnASingleLine: false
16 AllowShortEnumsOnASingleLine: false
17 AllowShortFunctionsOnASingleLine: None
18 AllowShortIfStatementsOnASingleLine: Never
19 AllowShortLambdasOnASingleLine: None
20 AllowShortLoopsOnASingleLine: false
21 AlwaysBreakAfterReturnType: None
22 AlwaysBreakBeforeMultilineStrings: false
23 AlwaysBreakTemplateDeclarations: Yes
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 ]
38 BinPackArguments: true
39 BinPackParameters: true
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
57 BreakBeforeBinaryOperators: None
58 BreakBeforeBraces: Custom
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
69 DeriveLineEnding: false
70 DerivePointerAlignment: false
71 DisableFormat: false
72 EmptyLineBeforeAccessModifier: Always
73 FixNamespaceComments: true
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 ]
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"
109 IndentAccessModifiers: false
110 IndentCaseBlocks: false
111 IndentCaseLabels: false
112 IndentExternBlock: NoIndent
113 IndentGotoLabels: false
114 IndentPPDirectives: AfterHash
115 IndentWidth: 4
116 IndentWrappedFunctionNames: false
117 InsertTrailingCommas: None
118 KeepEmptyLinesAtTheStartOfBlocks: false
119 LambdaBodyIndentation: Signature
120 Language: Cpp
121 MaxEmptyLinesToKeep: 1
122 NamespaceIndentation: None
123 PPIndentWidth: 4
124 PointerAlignment: Right
125 ReferenceAlignment: Left
126 ReflowComments: false
127 SortIncludes: CaseInsensitive
128 SortUsingDeclarations: false
129 SpaceAfterCStyleCast: true
130 SpaceAfterLogicalNot: false
131 SpaceAfterTemplateKeyword: true
132 SpaceAroundPointerQualifiers: Both
133 SpaceBeforeAssignmentOperators: true
134 SpaceBeforeCaseColon: false
135 SpaceBeforeCpp11BracedList: true
136 SpaceBeforeCtorInitializerColon: true
137 SpaceBeforeInheritanceColon: true
138 SpaceBeforeParens: ControlStatements
139 SpaceBeforeRangeBasedForLoopColon: true
140 SpaceBeforeSquareBrackets: false
141 SpaceInEmptyBlock: true
142 SpaceInEmptyParentheses: false
143 SpacesBeforeTrailingComments: 1
144 SpacesInAngles: Never
145 SpacesInConditionalStatement: false
146 SpacesInContainerLiterals: false
147 SpacesInCStyleCastParentheses: false
148 SpacesInParentheses: false
149 SpacesInSquareBrackets: false
150 Standard: Cpp11
151 UseCRLF: false
152 UseTab: Never
This page took 0.033849 seconds and 4 git commands to generate.