xref: /aosp_15_r20/external/bc/.clang-format (revision 5a6e848804d15c18a0125914844ee4eb0bda4fcf)
1*5a6e8488SAndroid Build Coastguard Worker---
2*5a6e8488SAndroid Build Coastguard WorkerLanguage:        Cpp
3*5a6e8488SAndroid Build Coastguard Worker# BasedOnStyle:  LLVM
4*5a6e8488SAndroid Build Coastguard WorkerAccessModifierOffset: 1
5*5a6e8488SAndroid Build Coastguard WorkerAlignAfterOpenBracket: Align
6*5a6e8488SAndroid Build Coastguard WorkerAlignConsecutiveAssignments: false
7*5a6e8488SAndroid Build Coastguard WorkerAlignConsecutiveBitFields: true
8*5a6e8488SAndroid Build Coastguard WorkerAlignConsecutiveDeclarations: false
9*5a6e8488SAndroid Build Coastguard WorkerAlignConsecutiveMacros: false
10*5a6e8488SAndroid Build Coastguard WorkerAlignEscapedNewlines: Left
11*5a6e8488SAndroid Build Coastguard WorkerAlignOperands: Align
12*5a6e8488SAndroid Build Coastguard WorkerAlignTrailingComments: true
13*5a6e8488SAndroid Build Coastguard WorkerAllowAllArgumentsOnNextLine: false
14*5a6e8488SAndroid Build Coastguard WorkerAllowAllConstructorInitializersOnNextLine: true
15*5a6e8488SAndroid Build Coastguard WorkerAllowAllParametersOfDeclarationOnNextLine: false
16*5a6e8488SAndroid Build Coastguard WorkerAllowShortBlocksOnASingleLine: Never
17*5a6e8488SAndroid Build Coastguard WorkerAllowShortCaseLabelsOnASingleLine: false
18*5a6e8488SAndroid Build Coastguard WorkerAllowShortEnumsOnASingleLine: false
19*5a6e8488SAndroid Build Coastguard WorkerAllowShortFunctionsOnASingleLine: None
20*5a6e8488SAndroid Build Coastguard WorkerAllowShortIfStatementsOnASingleLine: AllIfsAndElse
21*5a6e8488SAndroid Build Coastguard WorkerAllowShortLambdasOnASingleLine: Empty
22*5a6e8488SAndroid Build Coastguard WorkerAllowShortLoopsOnASingleLine: false
23*5a6e8488SAndroid Build Coastguard WorkerAlwaysBreakAfterReturnType: All
24*5a6e8488SAndroid Build Coastguard WorkerAlwaysBreakBeforeMultilineStrings: false
25*5a6e8488SAndroid Build Coastguard WorkerAlwaysBreakTemplateDeclarations: true
26*5a6e8488SAndroid Build Coastguard Worker#AttributeMacros: []
27*5a6e8488SAndroid Build Coastguard WorkerBinPackArguments: true
28*5a6e8488SAndroid Build Coastguard WorkerBinPackParameters: true
29*5a6e8488SAndroid Build Coastguard Worker#BitFieldColonSpacing: Both
30*5a6e8488SAndroid Build Coastguard WorkerBreakBeforeBraces: Custom
31*5a6e8488SAndroid Build Coastguard WorkerBraceWrapping:
32*5a6e8488SAndroid Build Coastguard Worker  AfterCaseLabel:        true
33*5a6e8488SAndroid Build Coastguard Worker  AfterClass:            true
34*5a6e8488SAndroid Build Coastguard Worker  AfterControlStatement: true
35*5a6e8488SAndroid Build Coastguard Worker  AfterEnum:             true
36*5a6e8488SAndroid Build Coastguard Worker  AfterFunction:         true
37*5a6e8488SAndroid Build Coastguard Worker  AfterNamespace:        true
38*5a6e8488SAndroid Build Coastguard Worker  AfterObjCDeclaration:  true
39*5a6e8488SAndroid Build Coastguard Worker  AfterStruct:           true
40*5a6e8488SAndroid Build Coastguard Worker  AfterUnion:            true
41*5a6e8488SAndroid Build Coastguard Worker  AfterExternBlock:      true
42*5a6e8488SAndroid Build Coastguard Worker  BeforeCatch:           true
43*5a6e8488SAndroid Build Coastguard Worker  BeforeElse:            true
44*5a6e8488SAndroid Build Coastguard Worker  BeforeLambdaBody:      false
45*5a6e8488SAndroid Build Coastguard Worker  BeforeWhile:           true
46*5a6e8488SAndroid Build Coastguard Worker  IndentBraces:          false
47*5a6e8488SAndroid Build Coastguard Worker  SplitEmptyFunction:    false
48*5a6e8488SAndroid Build Coastguard Worker  SplitEmptyRecord:      false
49*5a6e8488SAndroid Build Coastguard Worker  SplitEmptyNamespace:   false
50*5a6e8488SAndroid Build Coastguard WorkerBreakAfterJavaFieldAnnotations: true
51*5a6e8488SAndroid Build Coastguard WorkerBreakBeforeBinaryOperators: None
52*5a6e8488SAndroid Build Coastguard Worker#BreakBeforeConceptDeclarations: true
53*5a6e8488SAndroid Build Coastguard WorkerBreakBeforeInheritanceComma: false
54*5a6e8488SAndroid Build Coastguard WorkerBreakBeforeTernaryOperators: false
55*5a6e8488SAndroid Build Coastguard WorkerBreakConstructorInitializers: AfterColon
56*5a6e8488SAndroid Build Coastguard WorkerBreakInheritanceList: AfterColon
57*5a6e8488SAndroid Build Coastguard WorkerBreakStringLiterals: false
58*5a6e8488SAndroid Build Coastguard WorkerColumnLimit:     80
59*5a6e8488SAndroid Build Coastguard WorkerCommentPragmas:  '^ IWYU pragma:'
60*5a6e8488SAndroid Build Coastguard WorkerCompactNamespaces: false
61*5a6e8488SAndroid Build Coastguard WorkerConstructorInitializerAllOnOneLineOrOnePerLine: false
62*5a6e8488SAndroid Build Coastguard WorkerConstructorInitializerIndentWidth: 4
63*5a6e8488SAndroid Build Coastguard WorkerContinuationIndentWidth: 4
64*5a6e8488SAndroid Build Coastguard WorkerCpp11BracedListStyle: false
65*5a6e8488SAndroid Build Coastguard WorkerDeriveLineEnding: false
66*5a6e8488SAndroid Build Coastguard WorkerDerivePointerAlignment: false
67*5a6e8488SAndroid Build Coastguard WorkerDisableFormat:   false
68*5a6e8488SAndroid Build Coastguard WorkerExperimentalAutoDetectBinPacking: false
69*5a6e8488SAndroid Build Coastguard WorkerFixNamespaceComments: true
70*5a6e8488SAndroid Build Coastguard WorkerForEachMacros:
71*5a6e8488SAndroid Build Coastguard Worker  - foreach
72*5a6e8488SAndroid Build Coastguard Worker  - Q_FOREACH
73*5a6e8488SAndroid Build Coastguard Worker  - BOOST_FOREACH
74*5a6e8488SAndroid Build Coastguard WorkerIncludeBlocks: Regroup
75*5a6e8488SAndroid Build Coastguard WorkerIncludeCategories:
76*5a6e8488SAndroid Build Coastguard Worker  - Regex:           '^<(sys|arpa|net|netinet)/.*\.h>'
77*5a6e8488SAndroid Build Coastguard Worker    Priority:        2
78*5a6e8488SAndroid Build Coastguard Worker  - Regex:           '^<(args|bc|bcl|dc|file|history|lang|lex|library|num|opt|parse|program|rand|read|status|vector|version|vm)\.h>'
79*5a6e8488SAndroid Build Coastguard Worker    Priority:        3
80*5a6e8488SAndroid Build Coastguard Worker  - Regex:           '^<.*\.h>'
81*5a6e8488SAndroid Build Coastguard Worker    Priority:        0
82*5a6e8488SAndroid Build Coastguard Worker  - Regex:           '^<.*>'
83*5a6e8488SAndroid Build Coastguard Worker    Priority:        1
84*5a6e8488SAndroid Build Coastguard WorkerIncludeIsMainRegex: '(Test)?$'
85*5a6e8488SAndroid Build Coastguard WorkerIncludeIsMainSourceRegex: ''
86*5a6e8488SAndroid Build Coastguard WorkerIndentCaseLabels: true
87*5a6e8488SAndroid Build Coastguard WorkerIndentExternBlock: NoIndent
88*5a6e8488SAndroid Build Coastguard WorkerIndentGotoLabels: false
89*5a6e8488SAndroid Build Coastguard WorkerIndentPPDirectives: None
90*5a6e8488SAndroid Build Coastguard Worker#IndentPragmas: false
91*5a6e8488SAndroid Build Coastguard Worker#IndentRequires: true
92*5a6e8488SAndroid Build Coastguard WorkerIndentWidth:     4
93*5a6e8488SAndroid Build Coastguard WorkerIndentWrappedFunctionNames: false
94*5a6e8488SAndroid Build Coastguard WorkerInsertTrailingCommas: None
95*5a6e8488SAndroid Build Coastguard WorkerJavaImportGroups: []
96*5a6e8488SAndroid Build Coastguard WorkerJavaScriptQuotes: Double
97*5a6e8488SAndroid Build Coastguard WorkerJavaScriptWrapImports: true
98*5a6e8488SAndroid Build Coastguard WorkerKeepEmptyLinesAtTheStartOfBlocks: false
99*5a6e8488SAndroid Build Coastguard WorkerMacroBlockBegin: ''
100*5a6e8488SAndroid Build Coastguard WorkerMacroBlockEnd:   ''
101*5a6e8488SAndroid Build Coastguard WorkerMaxEmptyLinesToKeep: 1
102*5a6e8488SAndroid Build Coastguard WorkerNamespaceIndentation: None
103*5a6e8488SAndroid Build Coastguard WorkerNamespaceMacros: []
104*5a6e8488SAndroid Build Coastguard WorkerObjCBinPackProtocolList: Always
105*5a6e8488SAndroid Build Coastguard WorkerObjCBlockIndentWidth: 4
106*5a6e8488SAndroid Build Coastguard WorkerObjCBreakBeforeNestedBlockParam: true
107*5a6e8488SAndroid Build Coastguard WorkerObjCSpaceAfterProperty: true
108*5a6e8488SAndroid Build Coastguard WorkerObjCSpaceBeforeProtocolList: true
109*5a6e8488SAndroid Build Coastguard WorkerPenaltyBreakAssignment: 1000
110*5a6e8488SAndroid Build Coastguard WorkerPenaltyBreakBeforeFirstCallParameter: 429496720
111*5a6e8488SAndroid Build Coastguard WorkerPenaltyBreakComment: 300
112*5a6e8488SAndroid Build Coastguard WorkerPenaltyBreakFirstLessLess: 42949672
113*5a6e8488SAndroid Build Coastguard WorkerPenaltyBreakString: 10000
114*5a6e8488SAndroid Build Coastguard WorkerPenaltyBreakTemplateDeclaration: 10
115*5a6e8488SAndroid Build Coastguard WorkerPenaltyExcessCharacter: 42949672
116*5a6e8488SAndroid Build Coastguard WorkerPenaltyIndentedWhitespace: 1
117*5a6e8488SAndroid Build Coastguard WorkerPenaltyReturnTypeOnItsOwnLine: 60
118*5a6e8488SAndroid Build Coastguard WorkerPointerAlignment: Left
119*5a6e8488SAndroid Build Coastguard Worker#RawStringFormats:
120*5a6e8488SAndroid Build Coastguard Worker# This is used to get spaces around a bitwise and operator.
121*5a6e8488SAndroid Build Coastguard WorkerReferenceAlignment: Middle
122*5a6e8488SAndroid Build Coastguard WorkerReflowComments:  true
123*5a6e8488SAndroid Build Coastguard WorkerSortIncludes:    false
124*5a6e8488SAndroid Build Coastguard WorkerSortUsingDeclarations: true
125*5a6e8488SAndroid Build Coastguard WorkerSpaceAfterCStyleCast: true
126*5a6e8488SAndroid Build Coastguard WorkerSpaceAfterLogicalNot: false
127*5a6e8488SAndroid Build Coastguard WorkerSpaceAfterTemplateKeyword: true
128*5a6e8488SAndroid Build Coastguard Worker#SpaceAroundPointerQualifiers: Default
129*5a6e8488SAndroid Build Coastguard WorkerSpaceBeforeAssignmentOperators: true
130*5a6e8488SAndroid Build Coastguard WorkerSpaceBeforeCpp11BracedList: true
131*5a6e8488SAndroid Build Coastguard WorkerSpaceBeforeCtorInitializerColon: true
132*5a6e8488SAndroid Build Coastguard WorkerSpaceBeforeInheritanceColon: true
133*5a6e8488SAndroid Build Coastguard WorkerSpaceBeforeParens: ControlStatements
134*5a6e8488SAndroid Build Coastguard WorkerSpaceBeforeRangeBasedForLoopColon: true
135*5a6e8488SAndroid Build Coastguard WorkerSpaceBeforeSquareBrackets: false
136*5a6e8488SAndroid Build Coastguard WorkerSpaceInEmptyBlock: false
137*5a6e8488SAndroid Build Coastguard WorkerSpaceInEmptyParentheses: false
138*5a6e8488SAndroid Build Coastguard WorkerSpacesBeforeTrailingComments: 1
139*5a6e8488SAndroid Build Coastguard WorkerSpacesInAngles:  false
140*5a6e8488SAndroid Build Coastguard WorkerSpacesInContainerLiterals: true
141*5a6e8488SAndroid Build Coastguard WorkerSpacesInCStyleCastParentheses: false
142*5a6e8488SAndroid Build Coastguard WorkerSpacesInConditionalStatement: false
143*5a6e8488SAndroid Build Coastguard WorkerSpacesInParentheses: false
144*5a6e8488SAndroid Build Coastguard WorkerSpacesInSquareBrackets: false
145*5a6e8488SAndroid Build Coastguard WorkerStandard:       Latest
146*5a6e8488SAndroid Build Coastguard WorkerTabWidth:       4
147*5a6e8488SAndroid Build Coastguard WorkerTypenameMacros: []
148*5a6e8488SAndroid Build Coastguard WorkerUseCRLF:        false
149*5a6e8488SAndroid Build Coastguard WorkerUseTab:         ForIndentation
150*5a6e8488SAndroid Build Coastguard WorkerWhitespaceSensitiveMacros: []
151*5a6e8488SAndroid Build Coastguard Worker...
152