From 0c7e29b42e26e54b77ccb84e94e6584da5d97606 Mon Sep 17 00:00:00 2001 From: Bertrand SIMONNET Date: Mon, 23 Nov 2015 11:36:15 -0800 Subject: [PATCH] metricsd: Add clang format config. This will make it easier to catch formatting nits. This style is based on the Google style guide (well known publicly) and follows the Chromium style changes we have adopted. Bug: 25887990 Change-Id: If9562223752dfe611a32c341e703338f806bcc0f --- metricsd/.clang-format | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 metricsd/.clang-format diff --git a/metricsd/.clang-format b/metricsd/.clang-format new file mode 100644 index 000000000..65d8277af --- /dev/null +++ b/metricsd/.clang-format @@ -0,0 +1,9 @@ +BasedOnStyle: Google +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BinPackParameters: false +CommentPragmas: NOLINT:.* +DerivePointerAlignment: false +PointerAlignment: Left +TabWidth: 2