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