xref: /trunk/main/.clang-format (revision 7e63338a)
1#
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13#
14AccessModifierOffset: -4
15AlignEscapedNewlinesLeft: false
16AlignTrailingComments: false
17AllowAllParametersOfDeclarationOnNextLine: true
18AllowShortIfStatementsOnASingleLine: false
19AllowShortLoopsOnASingleLine: false
20AlwaysBreakBeforeMultilineStrings: false
21AlwaysBreakTemplateDeclarations: false
22BinPackParameters: true
23BreakBeforeBinaryOperators: true
24BreakBeforeBraces: Allman
25BreakBeforeTernaryOperators: true
26BreakConstructorInitializersBeforeComma: true
27ColumnLimit:     100
28ConstructorInitializerAllOnOneLineOrOnePerLine: false
29ConstructorInitializerIndentWidth: 4
30ContinuationIndentWidth: 4
31Cpp11BracedListStyle: false
32DerivePointerBinding: false
33ExperimentalAutoDetectBinPacking: false
34IndentCaseLabels: true
35IndentFunctionDeclarationAfterType: false
36IndentWidth:     4
37KeepEmptyLinesAtTheStartOfBlocks: false
38MaxEmptyLinesToKeep: 1
39NamespaceIndentation: None
40ObjCSpaceBeforeProtocolList: true
41PenaltyBreakBeforeFirstCallParameter: 19
42PenaltyBreakComment: 60
43PenaltyBreakFirstLessLess: 120
44PenaltyBreakString: 1000
45PenaltyExcessCharacter: 1000000
46PenaltyReturnTypeOnItsOwnLine: 60
47PointerBindsToType: true
48ReflowComments: false
49SortIncludes: false
50SpaceAfterControlStatementKeyword: true
51SpaceBeforeAssignmentOperators: true
52SpaceInEmptyParentheses: false
53SpacesBeforeTrailingComments: 1
54SpacesInAngles:  false
55SpacesInCStyleCastParentheses: false
56SpacesInParentheses: false
57Standard:        Auto
58TabWidth:        8
59UseTab:          Never
60