Skip to content

Commit 6af2674

Browse files
authored
[clang] Improve CI output when trailing whitespace is found (#66649)
Fixes #66468
1 parent e7a7a16 commit 6af2674

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/utils/ci/run-buildbot

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ ninja --version
7070

7171
case "${BUILDER}" in
7272
check-format)
73-
! grep -rnI '[[:blank:]]$' clang/lib clang/include clang/docs
73+
echo "*** Checking for trailing whitespace left in Clang source files ***"
74+
if grep -rnI '[[:blank:]]$' clang/lib clang/include clang/docs; then
75+
echo "*** Trailing whitespace has been found in Clang source files as described above ***"
76+
exit 1
77+
fi
7478
;;
7579
build-clang)
7680
mkdir install

0 commit comments

Comments
 (0)