OSDN Git Service

Update clang-format for correct Java style.
authorMarie Janssen <jamuraa@google.com>
Mon, 12 Dec 2016 18:06:13 +0000 (10:06 -0800)
committerMarie Janssen <jamuraa@google.com>
Mon, 12 Dec 2016 20:46:55 +0000 (20:46 +0000)
Move clang-format so it applies to the whole tree, and update for Java
style that is compatible with style with existing AOSP style.

Test: clang-format -style=file
Change-Id: I8cf854cc290669f9efefc34dcaddc43075978dfb

.clang-format [moved from jni/.clang-format with 85% similarity]

similarity index 85%
rename from jni/.clang-format
rename to .clang-format
index fa9d143..178675d 100644 (file)
 BasedOnStyle: Google
 CommentPragmas: NOLINT:.*
 DerivePointerAlignment: false
+
+---
+Language: Java
+BasedOnStyle: Google
+IndentWidth: 4
+ContinuationIndentWidth: 8
+ColumnLimit: 100
+AllowShortIfStatementsOnASingleLine: true