diff options
author | Sean Paul <seanpaul@chromium.org> | 2018-07-13 12:51:42 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2018-08-27 13:38:45 -0400 |
commit | 5c23d5d582d378f1e7f2da3878b11c7e595019f6 (patch) | |
tree | 2ca6c550a4700b3a3177c7c19f501be67d72b52d /.clang-format | |
parent | b6a675e6349e289f209cefcb3eacbf4faa26e567 (diff) | |
download | drm_hwcomposer-5c23d5d582d378f1e7f2da3878b11c7e595019f6.tar.gz |
drm_hwcomposer: Update clang-format to 5.0
Updating clang-format to 5.0 to get a bit more control over our
styling. Two things that will be beneficial:
- Alphabeticalize headers
- More control around line breaking, especially preferring
val = SomeFunction(arg1,
arg2);
vs:
val =
SomeFunction(arg1, arg2);
It's still not perfect, but it seems greatly improved.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 5382f9b..984fa5e 100644 --- a/.clang-format +++ b/.clang-format @@ -1,4 +1,7 @@ BasedOnStyle: Google +AllowAllParametersOfDeclarationOnNextLine: false AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AllowShortFunctionsOnASingleLine: None +PenaltyBreakAssignment: 10000000 +PenaltyBreakBeforeFirstCallParameter: 1000 |