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

via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 19 15:17:06 PDT 2023


Author: Louis Dionne
Date: 2023-09-19T18:17:03-04:00
New Revision: 6af26745974e9d14765d7e961be6af45b9ccd978

URL: https://github.com/llvm/llvm-project/commit/6af26745974e9d14765d7e961be6af45b9ccd978
DIFF: https://github.com/llvm/llvm-project/commit/6af26745974e9d14765d7e961be6af45b9ccd978.diff

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

Fixes #66468

Added: 
    

Modified: 
    clang/utils/ci/run-buildbot

Removed: 
    


################################################################################
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


        


More information about the cfe-commits mailing list