Martin Stjernholm | 485e688 | 2022-11-09 23:32:03 +0000 | [diff] [blame] | 1 | # Variant of .clang-format but with 2 space indent for Java files, for use in |
| 2 | # subdirectories with that style. |
| 3 | # Please keep in sync with .clang-format where applicable. |
| 4 | --- |
| 5 | BasedOnStyle: Google |
| 6 | --- |
| 7 | |
| 8 | Language: Cpp |
| 9 | |
| 10 | AlignConsecutiveMacros: AcrossComments |
| 11 | AllowShortBlocksOnASingleLine: Empty |
| 12 | AllowShortCaseLabelsOnASingleLine: false |
| 13 | AllowShortIfStatementsOnASingleLine: Never |
| 14 | AllowShortLoopsOnASingleLine: false |
| 15 | AttributeMacros: ['__', 'NO_RETURN'] |
| 16 | BinPackArguments: false |
| 17 | BinPackParameters: false |
| 18 | BreakConstructorInitializers: BeforeColon |
| 19 | BreakBeforeTernaryOperators: false |
| 20 | ColumnLimit: 100 |
| 21 | CommentPragmas: NOLINT:.* |
| 22 | ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 23 | Cpp11BracedListStyle: true |
| 24 | DerivePointerAlignment: false |
| 25 | FixNamespaceComments: true |
| 26 | PointerAlignment: Left |
| 27 | TabWidth: 2 |
| 28 | |
| 29 | --- |
| 30 | |
| 31 | Language: Java |
| 32 | |
Martin Stjernholm | 485e688 | 2022-11-09 23:32:03 +0000 | [diff] [blame] | 33 | ColumnLimit: 100 |
| 34 | CommentPragmas: (NOLINT|CHECK[^ ]*):.* |
Martin Stjernholm | 485e688 | 2022-11-09 23:32:03 +0000 | [diff] [blame] | 35 | ContinuationIndentWidth: 4 |
| 36 | IndentWidth: 2 |
| 37 | JavaImportGroups: |
| 38 | - android |
| 39 | - androidx |
| 40 | - com.android |
| 41 | - dalvik |
| 42 | - libcore |
| 43 | - com |
| 44 | - junit |
| 45 | - net |
| 46 | - org |
| 47 | - java |
| 48 | - javax |