Skip to content
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

Fix exclude regex in pre-commit clang-format hook #16030

Conversation

wence-
Copy link
Contributor

@wence- wence- commented Jun 14, 2024

Description

The clang-tidy changes in #15894 introduce a new exclude regex list to the pre-commit clang-format hook. However, it was a single character too long, ending with a |. Consequently, the exclude regex matched the empty string, and hence excluded every C++ file.

Fix this, and apply formatting changes to the files that were modified in the interim and were not clang-format compatible.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

The clang-tidy changes in rapidsai#15894 introduce a new exclude regex list to
the pre-commit clang-format hook. However, it was a single character
too long, ending with a |. Consequently, the exclude regex matched the
empty string, and hence excluded every C++ file.

Fix this, and apply formatting changes to the files that were modified
in the interim and were not clang-format compatible.
@wence- wence- requested review from a team as code owners June 14, 2024 09:02
@wence- wence- added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jun 14, 2024
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Jun 14, 2024
Copy link
Contributor

@davidwendt davidwendt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Only 2 files slipped through then.

@bdice
Copy link
Contributor

bdice commented Jun 14, 2024

I’ll merge this now to avoid further conflicts.

@bdice
Copy link
Contributor

bdice commented Jun 14, 2024

/merge

@rapids-bot rapids-bot bot merged commit 374ee13 into rapidsai:branch-24.08 Jun 14, 2024
76 checks passed
@wence- wence- deleted the wence/fix/pre-commit-clang-format-exclude branch June 14, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants