blob: 956bdcde6b6e6fa68cec013bacbbd5f29dd3a43e [file] [log] [blame]
# Variant of .clang-format but with 2 space indent for Java files, for use in
# subdirectories with that style.
# Please keep in sync with .clang-format where applicable.
---
BasedOnStyle: Google
---
Language: Cpp
AlignConsecutiveMacros: AcrossComments
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AttributeMacros: ['__', 'NO_RETURN']
BinPackArguments: false
BinPackParameters: false
BreakConstructorInitializers: BeforeColon
BreakBeforeTernaryOperators: false
ColumnLimit: 100
CommentPragmas: NOLINT:.*
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
DerivePointerAlignment: false
FixNamespaceComments: true
PointerAlignment: Left
TabWidth: 2
---
Language: Java
ColumnLimit: 100
CommentPragmas: (NOLINT|CHECK[^ ]*):.*
ContinuationIndentWidth: 4
IndentWidth: 2
JavaImportGroups:
- android
- androidx
- com.android
- dalvik
- libcore
- com
- junit
- net
- org
- java
- javax