diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2019-03-01 10:06:52 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-01 23:41:21 -0800 |
commit | cfcb655fdc5e230f0255d9721c0ea4b0f9b4c51c (patch) | |
tree | e3bfa17a8e10576039e848f33a19e50f20e7a824 | |
parent | 56fcb2c97fbde8b1d23c05d15ab66f3311b81a6a (diff) | |
download | chrome-ec-cfcb655fdc5e230f0255d9721c0ea4b0f9b4c51c.tar.gz |
.clang-format: add more style options
These options direct the formatter to enforce style which is closer to
the EC codebase status quo:
- no single line functions
- avoid function return type on a separate line
BRANCH=none
BUG=none
TEST=ran clang-format and observed desired behavior
Change-Id: I62012f58483f11c46925f2c6c4c6fff72b9e90f8
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1496204
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
-rw-r--r-- | .clang-format | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 6016fe522d..5b78818821 100644 --- a/.clang-format +++ b/.clang-format @@ -1,4 +1,5 @@ Language: Cpp +AllowShortFunctionsOnASingleLine: None AllowShortIfStatementsOnASingleLine: false BasedOnStyle: LLVM BreakBeforeBraces: Linux @@ -6,5 +7,6 @@ ColumnLimit: 80 ContinuationIndentWidth: 8 IndentCaseLabels: false IndentWidth: 8 +PenaltyReturnTypeOnItsOwnLine: 1000 SortIncludes: false UseTab: Always |