Skip to content

Commit 7945f75

Browse files
Patrick GeorgiMartin Roth
authored andcommitted
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 <[email protected]> Original Reviewed-on: https://review.coreboot.org/c/coreboot/+/31651 Change-Id: I9c99e5cca6548e23cf755dc37193ff2aa669ac10 Signed-off-by: Martin Roth <[email protected]> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33405 Tested-by: build bot (Jenkins) <[email protected]> Reviewed-by: Philipp Deppenwiese <[email protected]> Reviewed-by: Werner Zeh <[email protected]>
1 parent 27ca962 commit 7945f75

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AllowShortIfStatementsOnASingleLine: false
77
IndentCaseLabels: false
88
SortIncludes: false
99
ContinuationIndentWidth: 8
10-
ColumnLimit: 0
10+
ColumnLimit: 96
1111
AlwaysBreakBeforeMultilineStrings: true
1212
AllowShortLoopsOnASingleLine: false
1313
AllowShortFunctionsOnASingleLine: false

util/lint/lint-007-checkpatch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ EXCLUDED_DIRS="^payloads/libpayload/util/kconfig\|\
2828
^src/vendorcode\|\
2929
^Documentation"
3030

31+
opts="--max-line-length 96"
32+
3133
# default: test src and util
3234
if [ "$1" = "" ]; then
3335
INCLUDED_DIRS="src util"
3436
# special mode: take diff from stdin, but exclude the dirs
3537
elif [ "$1" = "diff" ]; then
3638
args=$( echo $EXCLUDED_DIRS | \
3739
sed -e 's,\\|, ,g' -e 's,\^,--exclude=,g' )
38-
util/lint/checkpatch.pl --quiet --no-signoff $args -
40+
util/lint/checkpatch.pl --quiet --no-signoff $opts $args -
3941
exit $?
4042
# Space separated list of directories to test
4143
else
@@ -49,5 +51,5 @@ FILELIST=$( git ls-files $INCLUDED_DIRS | \
4951
grep -v $EXCLUDED_DIRS )
5052

5153
for FILE in $FILELIST; do
52-
util/lint/checkpatch.pl --show-types --file --quiet "$FILE"
54+
util/lint/checkpatch.pl --show-types --file --quiet $opts "$FILE"
5355
done

0 commit comments

Comments
 (0)