aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-09-12 19:37:35 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-09-12 19:37:35 +0000
commit0f98e4a9d6cffda08caa098fe96d4d888dba0b1b (patch)
treeb0a8810ccccf1cd64c4ebe604ee9a3ad703963e6
parent6bb2fe0d76bb2adff3997c9f585e8aa38423ade4 (diff)
parent160e2b5d8d58f161a01097c4b91c6676caeb710c (diff)
downloadlibnativehelper-0f98e4a9d6cffda08caa098fe96d4d888dba0b1b.tar.gz
Merge "Add .clang-format to libnativehelper." into main am: 160e2b5d8d
Original change: https://android-review.googlesource.com/c/platform/libnativehelper/+/2748415 Change-Id: I2b8a3804d558730ddd0f9c8c6e15dcaef3bcc2f7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--.clang-format47
1 files changed, 47 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..83c5901
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,47 @@
+# Copied from art/.clang-format with IndentWidth and TabWidth modified to 4 for Cpp.
+---
+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
+IndentWidth: 4
+TabWidth: 4
+
+---
+
+Language: Java
+
+ColumnLimit: 100
+CommentPragmas: (NOLINT|CHECK[^ ]*):.*
+ContinuationIndentWidth: 8
+IndentWidth: 4
+JavaImportGroups:
+- android
+- androidx
+- com.android
+- dalvik
+- libcore
+- com
+- junit
+- net
+- org
+- java
+- javax