blob: 880e9cb95d4af000a3432c4894d44690da28b3ca [file] [log] [blame]
Hirokazu Hondaf5398e62017-12-14 09:46:56 +09001---
2BasedOnStyle: Google
3AllowShortFunctionsOnASingleLine: Inline
4AllowShortIfStatementsOnASingleLine: true
5AllowShortLoopsOnASingleLine: true
6BinPackArguments: true
7BinPackParameters: true
8CommentPragmas: NOLINT:.*
9ContinuationIndentWidth: 8
10DerivePointerAlignment: false
11IndentWidth: 4
12PointerAlignment: Left
13TabWidth: 4
14
15# Deviations from the above file:
16# "Don't indent the section label"
17AccessModifierOffset: -4
18# "Each line of text in your code should be at most 100 columns long."
19ColumnLimit: 100
20# "Constructor initializer lists can be all on one line or with subsequent
21# lines indented eight spaces.". clang-format does not support having the colon
22# on the same line as the constructor function name, so this is the best
23# approximation of that rule, which makes all entries in the list (except the
24# first one) have an eight space indentation.
25ConstructorInitializerIndentWidth: 6
26# There is nothing in go/droidcppstyle about case labels, but there seems to be
27# more code that does not indent the case labels in frameworks/base.
28IndentCaseLabels: false
29# There have been some bugs in which subsequent formatting operations introduce
30# weird comment jumps.
31ReflowComments: false
32# Android does support C++11 now.
33Standard: Cpp11
David Staessens6737f422020-05-25 17:40:11 +090034# Don't merge include blocks.
35IncludeBlocks: Preserve