aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand SIMONNET <bsimonnet@google.com>2016-01-21 11:16:53 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-01-21 22:07:42 +0000
commit9c62696baaf037b62d21829b93291ece6b530ee9 (patch)
tree2d4d4ca97876cd1d0f88ae0f218b80eaf75a0bf3
parent0f7b1e25b16a5feb1e9bb58fc573943c004831ae (diff)
downloadperipheralmanager-9c62696baaf037b62d21829b93291ece6b530ee9.tar.gz
peripheralman: Add clang-format definition.
Copied from system/core/metricsd/.clang-format. This allows us to format the code with clang-format. Change-Id: Ice94e9f40403e6a2e53d928fbbb278807b478a63
-rw-r--r--.clang-format9
1 files changed, 9 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..65d8277
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,9 @@
+BasedOnStyle: Google
+AllowShortFunctionsOnASingleLine: Inline
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+BinPackParameters: false
+CommentPragmas: NOLINT:.*
+DerivePointerAlignment: false
+PointerAlignment: Left
+TabWidth: 2