diff options
author | Vadim Sukhomlinov <sukhomlinov@google.com> | 2021-09-23 11:12:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-23 19:47:11 +0000 |
commit | 0fddca859765b416ea658195447ba8741f1e1cc0 (patch) | |
tree | 36b2b98306b2838318dec4edfab3163469408ac2 /.clang-format | |
parent | 3e79af7d30c9c71029873ebad4dead13d09e298c (diff) | |
download | chrome-ec-0fddca859765b416ea658195447ba8741f1e1cc0.tar.gz |
cr50: update .clang-format to better deal with long identifiers
Use of long return types like 'enum dcrypto_result' with long function
names commonly results in return type being on line alone:
Before:
enum dcrypto_result
DCRYPTO_p256_key_from_bytes(p256_int *x, p256_int *y, p256_int *d,
const uint8_t bytes[P256_NBYTES])
After:
enum dcrypto_result DCRYPTO_p256_key_from_bytes(
p256_int *x, p256_int *y, p256_int *d, const uint8_t bytes[P256_NBYTES])
BUG=none
TEST=make buildall -j
Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com>
Change-Id: I51f5b4cd8dd058796bd4ee5edd786a384460dedf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3179709
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Commit-Queue: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Auto-Submit: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index 39b90885fc..9480437119 100644 --- a/.clang-format +++ b/.clang-format @@ -95,7 +95,7 @@ PenaltyBreakComment: 10 PenaltyBreakFirstLessLess: 0 PenaltyBreakString: 10 PenaltyExcessCharacter: 100 -PenaltyReturnTypeOnItsOwnLine: 60 +PenaltyReturnTypeOnItsOwnLine: 120 PointerAlignment: Right ReflowComments: true |