aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-09-12 22:58:19 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-09-12 22:58:19 +0000
commit843f24676c1ca45f90a0bd68b761e3bcbdd22e64 (patch)
treeb0a8810ccccf1cd64c4ebe604ee9a3ad703963e6
parentb2e5575aa8a275804209ff57c31badd0f9afbbdd (diff)
parentd63a39289433e10d3a76474e553cfce6cb9fb4e6 (diff)
downloadlibnativehelper-843f24676c1ca45f90a0bd68b761e3bcbdd22e64.tar.gz
Merge "Add .clang-format to libnativehelper." into main am: 160e2b5d8d am: 0f98e4a9d6 am: 122797c106 am: dfca4d073f am: d63a392894
Original change: https://android-review.googlesource.com/c/platform/libnativehelper/+/2748415 Change-Id: I7ee897b3f870931f2d95960e892496e4f071562f 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