xref: /aosp_15_r20/frameworks/av/services/tuner/.clang-format (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1*ec779b8eSAndroid Build Coastguard Worker---
2*ec779b8eSAndroid Build Coastguard WorkerBasedOnStyle: Google
3*ec779b8eSAndroid Build Coastguard WorkerAllowShortFunctionsOnASingleLine: Inline
4*ec779b8eSAndroid Build Coastguard WorkerAllowShortIfStatementsOnASingleLine: true
5*ec779b8eSAndroid Build Coastguard WorkerAllowShortLoopsOnASingleLine: true
6*ec779b8eSAndroid Build Coastguard WorkerBinPackArguments: true
7*ec779b8eSAndroid Build Coastguard WorkerBinPackParameters: true
8*ec779b8eSAndroid Build Coastguard WorkerCommentPragmas: NOLINT:.*
9*ec779b8eSAndroid Build Coastguard WorkerContinuationIndentWidth: 8
10*ec779b8eSAndroid Build Coastguard WorkerDerivePointerAlignment: false
11*ec779b8eSAndroid Build Coastguard WorkerIndentWidth: 4
12*ec779b8eSAndroid Build Coastguard WorkerPointerAlignment: Left
13*ec779b8eSAndroid Build Coastguard WorkerTabWidth: 4
14*ec779b8eSAndroid Build Coastguard Worker
15*ec779b8eSAndroid Build Coastguard Worker# Deviations from the above file:
16*ec779b8eSAndroid Build Coastguard Worker# "Don't indent the section label"
17*ec779b8eSAndroid Build Coastguard WorkerAccessModifierOffset: -4
18*ec779b8eSAndroid Build Coastguard Worker# "Each line of text in your code should be at most 100 columns long."
19*ec779b8eSAndroid Build Coastguard WorkerColumnLimit: 100
20*ec779b8eSAndroid Build Coastguard Worker# "Constructor initializer lists can be all on one line or with subsequent
21*ec779b8eSAndroid Build Coastguard Worker# lines indented eight spaces.". clang-format does not support having the colon
22*ec779b8eSAndroid Build Coastguard Worker# on the same line as the constructor function name, so this is the best
23*ec779b8eSAndroid Build Coastguard Worker# approximation of that rule, which makes all entries in the list (except the
24*ec779b8eSAndroid Build Coastguard Worker# first one) have an eight space indentation.
25*ec779b8eSAndroid Build Coastguard WorkerConstructorInitializerIndentWidth: 6
26*ec779b8eSAndroid Build Coastguard Worker# There is nothing in go/droidcppstyle about case labels, but there seems to be
27*ec779b8eSAndroid Build Coastguard Worker# more code that does not indent the case labels in frameworks/base.
28*ec779b8eSAndroid Build Coastguard WorkerIndentCaseLabels: false
29*ec779b8eSAndroid Build Coastguard Worker# There have been some bugs in which subsequent formatting operations introduce
30*ec779b8eSAndroid Build Coastguard Worker# weird comment jumps.
31*ec779b8eSAndroid Build Coastguard WorkerReflowComments: false
32*ec779b8eSAndroid Build Coastguard Worker# Android does support C++11 now.
33*ec779b8eSAndroid Build Coastguard WorkerStandard: Cpp11