lint/clang-format: set to 96 chars per line

coreboot has decided to go with 96 characters per line.

Original Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original Reviewed-on: https://review.coreboot.org/c/coreboot/+/31651

Change-Id: I9c99e5cca6548e23cf755dc37193ff2aa669ac10
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33405
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
This commit is contained in:
Patrick Georgi 2019-02-27 19:57:23 +01:00 committed by Martin Roth
parent 27ca962058
commit 7945f75417
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@ AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false IndentCaseLabels: false
SortIncludes: false SortIncludes: false
ContinuationIndentWidth: 8 ContinuationIndentWidth: 8
ColumnLimit: 0 ColumnLimit: 96
AlwaysBreakBeforeMultilineStrings: true AlwaysBreakBeforeMultilineStrings: true
AllowShortLoopsOnASingleLine: false AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false AllowShortFunctionsOnASingleLine: false

View File

@ -28,6 +28,8 @@ EXCLUDED_DIRS="^payloads/libpayload/util/kconfig\|\
^src/vendorcode\|\ ^src/vendorcode\|\
^Documentation" ^Documentation"
opts="--max-line-length 96"
# default: test src and util # default: test src and util
if [ "$1" = "" ]; then if [ "$1" = "" ]; then
INCLUDED_DIRS="src util" INCLUDED_DIRS="src util"
@ -35,7 +37,7 @@ if [ "$1" = "" ]; then
elif [ "$1" = "diff" ]; then elif [ "$1" = "diff" ]; then
args=$( echo $EXCLUDED_DIRS | \ args=$( echo $EXCLUDED_DIRS | \
sed -e 's,\\|, ,g' -e 's,\^,--exclude=,g' ) sed -e 's,\\|, ,g' -e 's,\^,--exclude=,g' )
util/lint/checkpatch.pl --quiet --no-signoff $args - util/lint/checkpatch.pl --quiet --no-signoff $opts $args -
exit $? exit $?
# Space separated list of directories to test # Space separated list of directories to test
else else
@ -49,5 +51,5 @@ FILELIST=$( git ls-files $INCLUDED_DIRS | \
grep -v $EXCLUDED_DIRS ) grep -v $EXCLUDED_DIRS )
for FILE in $FILELIST; do for FILE in $FILELIST; do
util/lint/checkpatch.pl --show-types --file --quiet "$FILE" util/lint/checkpatch.pl --show-types --file --quiet $opts "$FILE"
done done