xref: /aosp_15_r20/external/libavc/.clang-format (revision 495ae853bb871d1e5a258cb02c2cc13cde8ddb9a)
1---
2Language:        Cpp
3# BasedOnStyle:  Google
4AccessModifierOffset: -1
5AlignAfterOpenBracket: Align
6AlignConsecutiveMacros: None
7AlignConsecutiveAssignments: None
8AlignConsecutiveBitFields: None
9AlignConsecutiveDeclarations: None
10AlignEscapedNewlines: Left
11AlignOperands:   Align
12AlignTrailingComments: true
13AllowAllArgumentsOnNextLine: true
14AllowAllConstructorInitializersOnNextLine: true
15AllowAllParametersOfDeclarationOnNextLine: true
16AllowShortEnumsOnASingleLine: true
17AllowShortBlocksOnASingleLine: Never
18AllowShortCaseLabelsOnASingleLine: false
19AllowShortFunctionsOnASingleLine: All
20AllowShortLambdasOnASingleLine: All
21AllowShortIfStatementsOnASingleLine: WithoutElse
22AllowShortLoopsOnASingleLine: true
23AlwaysBreakAfterDefinitionReturnType: None
24AlwaysBreakAfterReturnType: None
25AlwaysBreakBeforeMultilineStrings: true
26AlwaysBreakTemplateDeclarations: Yes
27AttributeMacros:
28  - __capability
29BinPackArguments: true
30BinPackParameters: true
31BraceWrapping:
32  AfterCaseLabel:  true
33  AfterClass:      false
34  AfterControlStatement: Always
35  AfterEnum:       true
36  AfterFunction:   true
37  AfterNamespace:  true
38  AfterObjCDeclaration: true
39  AfterStruct:     true
40  AfterUnion:      true
41  AfterExternBlock: true
42  BeforeCatch:     true
43  BeforeElse:      true
44  BeforeLambdaBody: false
45  BeforeWhile:     false
46  IndentBraces:    false
47  SplitEmptyFunction: true
48  SplitEmptyRecord: true
49  SplitEmptyNamespace: true
50BreakBeforeBinaryOperators: None
51BreakBeforeConceptDeclarations: true
52BreakBeforeBraces: Allman
53BreakBeforeInheritanceComma: false
54BreakInheritanceList: BeforeColon
55BreakBeforeTernaryOperators: true
56BreakConstructorInitializersBeforeComma: false
57BreakConstructorInitializers: BeforeColon
58BreakAfterJavaFieldAnnotations: false
59BreakStringLiterals: true
60ColumnLimit:     100
61CommentPragmas:  '^ IWYU pragma:'
62CompactNamespaces: false
63ConstructorInitializerAllOnOneLineOrOnePerLine: true
64ConstructorInitializerIndentWidth: 4
65ContinuationIndentWidth: 4
66Cpp11BracedListStyle: true
67DeriveLineEnding: true
68DerivePointerAlignment: true
69DisableFormat:   false
70EmptyLineBeforeAccessModifier: LogicalBlock
71ExperimentalAutoDetectBinPacking: false
72FixNamespaceComments: true
73ForEachMacros:
74  - foreach
75  - Q_FOREACH
76  - BOOST_FOREACH
77StatementAttributeLikeMacros:
78  - Q_EMIT
79IncludeBlocks:   Preserve
80IncludeCategories:
81  - Regex:           '^<ext/.*\.h>'
82    Priority:        2
83    SortPriority:    0
84    CaseSensitive:   false
85  - Regex:           '^<.*\.h>'
86    Priority:        1
87    SortPriority:    0
88    CaseSensitive:   false
89  - Regex:           '^<.*'
90    Priority:        2
91    SortPriority:    0
92    CaseSensitive:   false
93  - Regex:           '.*'
94    Priority:        3
95    SortPriority:    0
96    CaseSensitive:   false
97IncludeIsMainRegex: '([-_](test|unittest))?$'
98IncludeIsMainSourceRegex: ''
99IndentCaseLabels: true
100IndentCaseBlocks: false
101IndentGotoLabels: true
102IndentPPDirectives: None
103IndentExternBlock: AfterExternBlock
104IndentRequires:  false
105IndentWidth:     4
106IndentWrappedFunctionNames: false
107InsertTrailingCommas: None
108JavaScriptQuotes: Leave
109JavaScriptWrapImports: true
110KeepEmptyLinesAtTheStartOfBlocks: false
111MacroBlockBegin: ''
112MacroBlockEnd:   ''
113MaxEmptyLinesToKeep: 1
114NamespaceIndentation: None
115ObjCBinPackProtocolList: Never
116ObjCBlockIndentWidth: 2
117ObjCBreakBeforeNestedBlockParam: true
118ObjCSpaceAfterProperty: false
119ObjCSpaceBeforeProtocolList: true
120PenaltyBreakAssignment: 2
121PenaltyBreakBeforeFirstCallParameter: 1
122PenaltyBreakComment: 300
123PenaltyBreakFirstLessLess: 120
124PenaltyBreakString: 1000
125PenaltyBreakTemplateDeclaration: 10
126PenaltyExcessCharacter: 1000000
127PenaltyReturnTypeOnItsOwnLine: 200
128PenaltyIndentedWhitespace: 0
129PointerAlignment: Right
130RawStringFormats:
131  - Language:        Cpp
132    Delimiters:
133      - cc
134      - CC
135      - cpp
136      - Cpp
137      - CPP
138      - 'c++'
139      - 'C++'
140    CanonicalDelimiter: ''
141    BasedOnStyle:    google
142  - Language:        TextProto
143    Delimiters:
144      - pb
145      - PB
146      - proto
147      - PROTO
148    EnclosingFunctions:
149      - EqualsProto
150      - EquivToProto
151      - PARSE_PARTIAL_TEXT_PROTO
152      - PARSE_TEST_PROTO
153      - PARSE_TEXT_PROTO
154      - ParseTextOrDie
155      - ParseTextProtoOrDie
156      - ParseTestProto
157      - ParsePartialTestProto
158    CanonicalDelimiter: ''
159    BasedOnStyle:    google
160ReflowComments:  true
161SortIncludes:    false
162SortJavaStaticImport: Before
163SortUsingDeclarations: true
164SpaceAfterCStyleCast: true
165SpaceAfterLogicalNot: false
166SpaceAfterTemplateKeyword: true
167SpaceBeforeAssignmentOperators: true
168SpaceBeforeCaseColon: false
169SpaceBeforeCpp11BracedList: false
170SpaceBeforeCtorInitializerColon: true
171SpaceBeforeInheritanceColon: true
172SpaceBeforeParens: Never
173SpaceAroundPointerQualifiers: Default
174SpaceBeforeRangeBasedForLoopColon: true
175SpaceInEmptyBlock: false
176SpaceInEmptyParentheses: false
177SpacesBeforeTrailingComments: 2
178SpacesInAngles:  false
179SpacesInConditionalStatement: false
180SpacesInContainerLiterals: true
181SpacesInCStyleCastParentheses: false
182SpacesInParentheses: false
183SpacesInSquareBrackets: false
184SpaceBeforeSquareBrackets: false
185BitFieldColonSpacing: Both
186Standard:        Auto
187StatementMacros:
188  - Q_UNUSED
189  - QT_REQUIRE_VERSION
190TabWidth:        4
191UseCRLF:         false
192UseTab:          Never
193WhitespaceSensitiveMacros:
194  - STRINGIZE
195  - PP_STRINGIZE
196  - BOOST_PP_STRINGIZE
197  - NS_SWIFT_NAME
198  - CF_SWIFT_NAME
199...
200
201