From 6af26745974e9d14765d7e961be6af45b9ccd978 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 19 Sep 2023 18:17:03 -0400 Subject: [PATCH] [clang] Improve CI output when trailing whitespace is found (#66649) Fixes #66468 --- clang/utils/ci/run-buildbot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clang/utils/ci/run-buildbot b/clang/utils/ci/run-buildbot index d117fccc7e3fbd8..f47ffb5cbd38dcd 100755 --- a/clang/utils/ci/run-buildbot +++ b/clang/utils/ci/run-buildbot @@ -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