From 74bda5f65b69bc1ed664fdfb39049e9120e04dec Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 3 Nov 2016 15:17:32 -0700 Subject: Add .clang-format style file. The file is forked from bionic project. It's mostly in Google style, with some tweaks (e.g. 100 column limit). New CLs can be formatted with `git clang-format --style=file`. Test: N/A Change-Id: I6fbd0ab851c03aa6de9987777c7da8cdca8964ed --- .clang-format | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..b8c642840 --- /dev/null +++ b/.clang-format @@ -0,0 +1,14 @@ +BasedOnStyle: Google +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: false + +ColumnLimit: 100 +CommentPragmas: NOLINT:.* +DerivePointerAlignment: false +IndentWidth: 2 +PointerAlignment: Left +TabWidth: 2 +UseTab: Never +PenaltyExcessCharacter: 32 + +Cpp11BracedListStyle: false -- cgit v1.2.3