[clang] [clang] Improve CI output when trailing whitespace is found (PR #66649)
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/66649 Fixes #66468 >From df20b6321bf9332571fc4e45ae370793876f7773 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 18 Sep 2023 09:58:29 -0400 Subject: [PATCH] [clang] Improve CI output when trailing whitespace is found 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 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [clang] Improve CI output when trailing whitespace is found (PR #66649)
ldionne wrote: @asl This should make it a bit more explicit. I see this now when running locally: ``` + echo '*** Checking for trailing whitespace left in Clang source files ***' *** Checking for trailing whitespace left in Clang source files *** + grep -rnI '[[:blank:]]$' clang/lib clang/include clang/docs clang/include/clang-c/Index.h:38: + echo '*** Trailing whitespace has been found in Clang source files as described above ***' *** Trailing whitespace has been found in Clang source files as described above *** + exit 1 ``` WDYT? It's still a bit cluttered by the fact that we run with `set -x` but I think it might be good enough. https://github.com/llvm/llvm-project/pull/66649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [clang] Improve CI output when trailing whitespace is found (PR #66649)
llvmbot wrote: @llvm/pr-subscribers-clang Changes Fixes #66468 --- Full diff: https://github.com/llvm/llvm-project/pull/66649.diff 1 Files Affected: - (modified) clang/utils/ci/run-buildbot (+5-1) ``diff 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 `` https://github.com/llvm/llvm-project/pull/66649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[clang] [clang] Improve CI output when trailing whitespace is found (PR #66649)
https://github.com/ldionne closed https://github.com/llvm/llvm-project/pull/66649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits