Hangyu Kuang | 71b9fb4 | 2019-11-27 10:33:32 -0800 | [diff] [blame^] | 1 | --- |
| 2 | BasedOnStyle: Google |
| 3 | AllowShortFunctionsOnASingleLine: Inline |
| 4 | AllowShortIfStatementsOnASingleLine: true |
| 5 | AllowShortLoopsOnASingleLine: true |
| 6 | BinPackArguments: true |
| 7 | BinPackParameters: true |
| 8 | CommentPragmas: NOLINT:.* |
| 9 | ContinuationIndentWidth: 8 |
| 10 | DerivePointerAlignment: false |
| 11 | IndentWidth: 4 |
| 12 | PointerAlignment: Left |
| 13 | TabWidth: 4 |
| 14 | |
| 15 | # Deviations from the above file: |
| 16 | # "Don't indent the section label" |
| 17 | AccessModifierOffset: -4 |
| 18 | # "Each line of text in your code should be at most 100 columns long." |
| 19 | ColumnLimit: 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. |
| 25 | ConstructorInitializerIndentWidth: 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. |
| 28 | IndentCaseLabels: false |
| 29 | # There have been some bugs in which subsequent formatting operations introduce |
| 30 | # weird comment jumps. |
| 31 | ReflowComments: false |
| 32 | # Android does support C++11 now. |
| 33 | Standard: Cpp11 |