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