xref: /aosp_15_r20/external/harfbuzz_ng/.clang-format (revision 2d1272b857b1f7575e6e246373e1cb218663db8a)
1*2d1272b8SAndroid Build Coastguard Worker# The following tries to match the current code style, is imperfect for now
2*2d1272b8SAndroid Build Coastguard Worker# but good for new codes be added
3*2d1272b8SAndroid Build Coastguard Worker
4*2d1272b8SAndroid Build Coastguard WorkerIndentWidth: 2
5*2d1272b8SAndroid Build Coastguard WorkerTabWidth: 8
6*2d1272b8SAndroid Build Coastguard WorkerUseTab: Always
7*2d1272b8SAndroid Build Coastguard WorkerSpaceBeforeParens: Always
8*2d1272b8SAndroid Build Coastguard WorkerAllowShortLoopsOnASingleLine: true
9*2d1272b8SAndroid Build Coastguard WorkerBreakBeforeBraces: Custom
10*2d1272b8SAndroid Build Coastguard WorkerBraceWrapping:
11*2d1272b8SAndroid Build Coastguard Worker  AfterEnum: true
12*2d1272b8SAndroid Build Coastguard Worker  AfterStruct: false
13*2d1272b8SAndroid Build Coastguard Worker  SplitEmptyFunction: false
14*2d1272b8SAndroid Build Coastguard Worker  AfterClass: true
15*2d1272b8SAndroid Build Coastguard Worker  AfterControlStatement: true
16*2d1272b8SAndroid Build Coastguard Worker  AfterEnum: false
17*2d1272b8SAndroid Build Coastguard Worker  AfterFunction: true
18*2d1272b8SAndroid Build Coastguard Worker  AfterNamespace: false
19*2d1272b8SAndroid Build Coastguard Worker  AfterStruct: true
20*2d1272b8SAndroid Build Coastguard Worker  AfterUnion: true
21*2d1272b8SAndroid Build Coastguard Worker  BeforeElse: true
22*2d1272b8SAndroid Build Coastguard WorkerAlwaysBreakTemplateDeclarations: true
23*2d1272b8SAndroid Build Coastguard WorkerAlignTrailingComments: true
24*2d1272b8SAndroid Build Coastguard WorkerAlignEscapedNewlines: Left
25*2d1272b8SAndroid Build Coastguard WorkerAllowShortBlocksOnASingleLine: true
26*2d1272b8SAndroid Build Coastguard WorkerSpaceAfterCStyleCast: true
27*2d1272b8SAndroid Build Coastguard WorkerAlwaysBreakAfterDefinitionReturnType: TopLevel
28*2d1272b8SAndroid Build Coastguard WorkerBinPackParameters: false
29*2d1272b8SAndroid Build Coastguard WorkerAllowShortFunctionsOnASingleLine: Inline
30*2d1272b8SAndroid Build Coastguard WorkerAccessModifierOffset: 0
31*2d1272b8SAndroid Build Coastguard WorkerAlignTrailingComments: true
32*2d1272b8SAndroid Build Coastguard WorkerAllowShortIfStatementsOnASingleLine: true
33*2d1272b8SAndroid Build Coastguard WorkerAlignAfterOpenBracket: Align
34*2d1272b8SAndroid Build Coastguard WorkerAlignOperands: true
35*2d1272b8SAndroid Build Coastguard WorkerAllowShortCaseLabelsOnASingleLine: true
36*2d1272b8SAndroid Build Coastguard Worker
37*2d1272b8SAndroid Build Coastguard Worker# We like to have this only for function parameters and structs fields, not always
38*2d1272b8SAndroid Build Coastguard Worker# AlignConsecutiveDeclarations: true
39