Debian Codegraph @

third-party/tbb/examples/.clang-format

raw
1 # Copyright (c) 2020-2021 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ---
16 Language: Cpp
17 AccessModifierOffset: -4
18 AlignAfterOpenBracket: Align
19 AlignConsecutiveAssignments: false
20 AlignConsecutiveDeclarations: false
21 AlignConsecutiveMacros: true
22 AlignEscapedNewlines: Left
23 AlignOperands: true
24 AlignTrailingComments: false
25 AllowAllArgumentsOnNextLine: true
26 AllowAllConstructorInitializersOnNextLine: false
27 AllowAllParametersOfDeclarationOnNextLine: false
28 AllowShortBlocksOnASingleLine: false
29 AllowShortCaseLabelsOnASingleLine: true
30 AllowShortFunctionsOnASingleLine: Empty
31 AllowShortIfStatementsOnASingleLine: Never
32 AllowShortLambdasOnASingleLine: Empty
33 AllowShortLoopsOnASingleLine: false
34 AlwaysBreakAfterDefinitionReturnType: None
35 AlwaysBreakAfterReturnType: None
36 AlwaysBreakBeforeMultilineStrings: false
37 AlwaysBreakTemplateDeclarations: Yes
38 BinPackArguments: false
39 BinPackParameters: false
40 BraceWrapping:
41 AfterCaseLabel: false
42 AfterClass: false
43 AfterControlStatement: false
44 AfterEnum: false
45 AfterFunction: false
46 AfterNamespace: false
47 AfterObjCDeclaration: false
48 AfterStruct: false
49 AfterUnion: false
50 AfterExternBlock: false
51 BeforeCatch: true
52 BeforeElse: true
53 IndentBraces: false
54 SplitEmptyFunction: false
55 SplitEmptyRecord: false
56 SplitEmptyNamespace: false
57 BreakBeforeBinaryOperators: None
58 BreakBeforeBraces: Custom
59 BreakBeforeTernaryOperators: true
60 BreakConstructorInitializers: BeforeColon
61 BreakInheritanceList: BeforeColon
62 BreakStringLiterals: false
63 ColumnLimit: 100
64 CommentPragmas: '^ IWYU pragma:'
65 CompactNamespaces: false
66 ConstructorInitializerAllOnOneLineOrOnePerLine: true
67 ConstructorInitializerIndentWidth: 8
68 ContinuationIndentWidth: 4
69 Cpp11BracedListStyle: false
70 DerivePointerAlignment: true
71 DisableFormat: false
72 FixNamespaceComments: true
73 ForEachMacros:
74 - foreach
75 - Q_FOREACH
76 - BOOST_FOREACH
77 IncludeBlocks: Preserve
78 IncludeCategories:
79 - Regex: '^<ext/.*\.h>'
80 Priority: 2
81 - Regex: '^<.*\.h>'
82 Priority: 1
83 - Regex: '^<.*'
84 Priority: 2
85 - Regex: '.*'
86 Priority: 3
87 IncludeIsMainRegex: '([-_](test|unittest))?$'
88 IndentCaseLabels: true
89 IndentPPDirectives: None
90 IndentWidth: 4
91 IndentWrappedFunctionNames: false
92 KeepEmptyLinesAtTheStartOfBlocks: false
93 MacroBlockBegin: ''
94 MacroBlockEnd: ''
95 MaxEmptyLinesToKeep: 1
96 NamespaceIndentation: None
97 PenaltyBreakAssignment: 2
98 PenaltyBreakBeforeFirstCallParameter: 1
99 PenaltyBreakComment: 300
100 PenaltyBreakFirstLessLess: 120
101 PenaltyBreakString: 1000
102 PenaltyBreakTemplateDeclaration: 10
103 PenaltyExcessCharacter: 1000000
104 PenaltyReturnTypeOnItsOwnLine: 200
105 PointerAlignment: Left
106 RawStringFormats:
107 - Language: Cpp
108 Delimiters:
109 - cc
110 - CC
111 - cpp
112 - Cpp
113 - CPP
114 - 'c++'
115 - 'C++'
116 CanonicalDelimiter: ''
117 BasedOnStyle: google
118 - Language: TextProto
119 Delimiters:
120 - pb
121 - PB
122 - proto
123 - PROTO
124 EnclosingFunctions:
125 - EqualsProto
126 - EquivToProto
127 - PARSE_PARTIAL_TEXT_PROTO
128 - PARSE_TEST_PROTO
129 - PARSE_TEXT_PROTO
130 - ParseTextOrDie
131 - ParseTextProtoOrDie
132 CanonicalDelimiter: ''
133 BasedOnStyle: google
134 ReflowComments: false
135 SortIncludes: false
136 SortUsingDeclarations: false
137 SpaceAfterCStyleCast: false
138 SpaceAfterLogicalNot: false
139 SpaceAfterTemplateKeyword: true
140 SpaceBeforeAssignmentOperators: true
141 SpaceBeforeCpp11BracedList: false
142 SpaceBeforeCtorInitializerColon: true
143 SpaceBeforeInheritanceColon: true
144 SpaceBeforeParens: ControlStatements
145 SpaceBeforeRangeBasedForLoopColon: true
146 SpaceInEmptyParentheses: false
147 SpacesBeforeTrailingComments: 1
148 SpacesInAngles: false
149 SpacesInContainerLiterals: false
150 SpacesInCStyleCastParentheses: false
151 SpacesInParentheses: false
152 SpacesInSquareBrackets: false
153 Standard: Cpp11
154 StatementMacros:
155 - Q_UNUSED
156 - QT_REQUIRE_VERSION
157 TabWidth: 1
158 UseTab: Never
159 ...