summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
author shafik <shafik@google.com> 2019-09-06 10:51:29 +0100
committer shafik <shafik@google.com> 2019-09-06 11:26:52 +0100
commit8b57cd5a7f99a363c9529d0127982c67722dcee0 (patch)
treecefb2ae9c0ddcffcfe1d5158990396d7499c0281 /.clang-format
parent88203dc22f8ddef9d6c9a35618739e88c20a6089 (diff)
Get ourselves some clang-format and apply it
Add clang-format and apply it to all *.cpp *.h files under jni/ Test: make Change-Id: I3fe84eb3a65b73d8b38bb9bd52c07945835ede70
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format12
1 files changed, 12 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 000000000..912716375
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,12 @@
+BasedOnStyle: Google
+AccessModifierOffset: -2
+AllowShortFunctionsOnASingleLine: Inline
+ColumnLimit: 100
+CommentPragmas: NOLINT:.*
+DerivePointerAlignment: false
+IndentWidth: 4
+ContinuationIndentWidth: 8
+PointerAlignment: Left
+TabWidth: 4
+UseTab: Never
+PenaltyExcessCharacter: 32