tests/lib/conds: change `nameSuffix` type to `bt2c::CStringView`
[babeltrace.git] / .clang-format
... / ...
CommitLineData
1# For clang-format 13
2AccessModifierOffset: -4
3AlignAfterOpenBracket: Align
4AlignArrayOfStructures: None
5AlignConsecutiveAssignments: None
6AlignConsecutiveDeclarations: None
7AlignConsecutiveMacros: Consecutive
8AlignEscapedNewlines: Right
9AlignOperands: Align
10AlignTrailingComments: true
11AllowAllArgumentsOnNextLine: false
12AllowAllConstructorInitializersOnNextLine: false
13AllowAllParametersOfDeclarationOnNextLine: false
14AllowShortBlocksOnASingleLine: Never
15AllowShortCaseLabelsOnASingleLine: false
16AllowShortEnumsOnASingleLine: false
17AllowShortFunctionsOnASingleLine: None
18AllowShortIfStatementsOnASingleLine: Never
19AllowShortLambdasOnASingleLine: None
20AllowShortLoopsOnASingleLine: false
21AlwaysBreakAfterReturnType: None
22AlwaysBreakBeforeMultilineStrings: false
23AlwaysBreakTemplateDeclarations: Yes
24AttributeMacros: [
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]
38BinPackArguments: true
39BinPackParameters: true
40BraceWrapping:
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
57BreakBeforeBinaryOperators: None
58BreakBeforeBraces: Custom
59BreakBeforeTernaryOperators: false
60BreakConstructorInitializers: AfterColon
61BreakInheritanceList: AfterColon
62BreakStringLiterals: false
63ColumnLimit: 100
64CompactNamespaces: false
65ConstructorInitializerAllOnOneLineOrOnePerLine: false
66ConstructorInitializerIndentWidth: 4
67ContinuationIndentWidth: 4
68Cpp11BracedListStyle: true
69DeriveLineEnding: false
70DerivePointerAlignment: false
71DisableFormat: false
72EmptyLineBeforeAccessModifier: Always
73FixNamespaceComments: true
74ForEachMacros: [
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]
82IncludeBlocks: Regroup
83IncludeCategories:
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
108IncludeIsMainRegex: "please_dont_do_that"
109IndentAccessModifiers: false
110IndentCaseBlocks: false
111IndentCaseLabels: false
112IndentExternBlock: NoIndent
113IndentGotoLabels: false
114IndentPPDirectives: AfterHash
115IndentWidth: 4
116IndentWrappedFunctionNames: false
117InsertTrailingCommas: None
118KeepEmptyLinesAtTheStartOfBlocks: false
119LambdaBodyIndentation: Signature
120Language: Cpp
121MaxEmptyLinesToKeep: 1
122NamespaceIndentation: None
123PPIndentWidth: 4
124PointerAlignment: Right
125ReferenceAlignment: Left
126ReflowComments: false
127SortIncludes: CaseInsensitive
128SortUsingDeclarations: false
129SpaceAfterCStyleCast: true
130SpaceAfterLogicalNot: false
131SpaceAfterTemplateKeyword: true
132SpaceAroundPointerQualifiers: Both
133SpaceBeforeAssignmentOperators: true
134SpaceBeforeCaseColon: false
135SpaceBeforeCpp11BracedList: true
136SpaceBeforeCtorInitializerColon: true
137SpaceBeforeInheritanceColon: true
138SpaceBeforeParens: ControlStatements
139SpaceBeforeRangeBasedForLoopColon: true
140SpaceBeforeSquareBrackets: false
141SpaceInEmptyBlock: true
142SpaceInEmptyParentheses: false
143SpacesBeforeTrailingComments: 1
144SpacesInAngles: Never
145SpacesInConditionalStatement: false
146SpacesInContainerLiterals: false
147SpacesInCStyleCastParentheses: false
148SpacesInParentheses: false
149SpacesInSquareBrackets: false
150Standard: Cpp11
151UseCRLF: false
152UseTab: Never
This page took 0.024626 seconds and 4 git commands to generate.