diff options
author | Bertrand SIMONNET <bsimonnet@google.com> | 2015-11-23 11:36:15 -0800 |
---|---|---|
committer | Bertrand Simonnet <bsimonnet@google.com> | 2015-12-02 16:42:11 +0000 |
commit | ae216f77d10e0629b7be2a2396e06a1d70540fa9 (patch) | |
tree | d0b52eb248b87d1566ba1ba140db3a988010a4d7 | |
parent | 7d93a6496f5e01445967ee4cc2c97c0bb99d559c (diff) | |
download | metricsd-ae216f77d10e0629b7be2a2396e06a1d70540fa9.tar.gz |
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
-rw-r--r-- | .clang-format | 9 |
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 |