[clang] Improve CI output when trailing whitespace is found (#66649)

Fixes #66468
This commit is contained in:
Louis Dionne 2023-09-19 18:17:03 -04:00 committed by GitHub
parent e7a7a16901
commit 6af2674597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,11 @@ ninja --version
case "${BUILDER}" in
check-format)
! grep -rnI '[[:blank:]]$' clang/lib clang/include clang/docs
echo "*** Checking for trailing whitespace left in Clang source files ***"
if grep -rnI '[[:blank:]]$' clang/lib clang/include clang/docs; then
echo "*** Trailing whitespace has been found in Clang source files as described above ***"
exit 1
fi
;;
build-clang)
mkdir install