Skip to content

[libc++] Stop checking for trailing whitespace in check-generated-output #72711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

ldionne
Copy link
Member

@ldionne ldionne commented Nov 17, 2023

Trailing whitespace is removed by clang-format, so if someone tries to check-in new code with trailing whitespaces, it'll be caught by the clang-format job. Removing this duplication helps reduce the confusion around our numerous ways of enforcing formatting rules.

Trailing whitespace is removed by clang-format, so if someone tries to
check-in new code with trailing whitespaces, it'll be caught by the
clang-format job. Removing this duplication helps reduce the confusion
around our numerous ways of enforcing formatting rules.
@ldionne ldionne requested a review from a team as a code owner November 17, 2023 22:15
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Nov 17, 2023
@llvmbot
Copy link
Member

llvmbot commented Nov 17, 2023

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

Changes

Trailing whitespace is removed by clang-format, so if someone tries to check-in new code with trailing whitespaces, it'll be caught by the clang-format job. Removing this duplication helps reduce the confusion around our numerous ways of enforcing formatting rules.


Full diff: https://github.com/llvm/llvm-project/pull/72711.diff

1 Files Affected:

  • (modified) libcxx/utils/ci/run-buildbot (-3)
diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index fe99388a799be8a..65d0cd6ee6b2871 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -262,9 +262,6 @@ check-generated-output)
            --exclude 'transcoding.pass.cpp' \
            --exclude 'underflow.pass.cpp' \
            || false
-
-    # Reject code with trailing whitespace
-    ! grep -rn '[[:blank:]]$' libcxx/include libcxx/src libcxx/test libcxx/benchmarks || false
 ;;
 #
 # Various Standard modes

@philnik777
Copy link
Contributor

This will only catch trailing whitespaces in files where we check clang-format though. Or do we clang-format everything now?

@ldionne
Copy link
Member Author

ldionne commented Nov 20, 2023

This will only catch trailing whitespaces in files where we check clang-format though. Or do we clang-format everything now?

We clang-format pretty much everything -- all the source code except the stuff in ignore_format.txt. I think in practice this is sufficient.

@ldionne ldionne merged commit c38ae74 into llvm:main Nov 20, 2023
@ldionne ldionne deleted the review/remove-trailing-whitespace-check branch November 20, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants