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

Allow disabling clang-tidy only for headers #76

Merged

Conversation

keith
Copy link
Contributor

@keith keith commented Oct 7, 2024

Since bazel doesn't automatically build headers in isolation unless you
enable parse_headers (which only recently works at all), headers may not
pass clang-tidy in isolation. This adds a new no-clang-tidy-headers
tag that can be added to libraries so that only their source files are
clang-tidy'd

Since bazel doesn't automatically build headers in isolation unless you
enable parse_headers (which only recently works at all), headers may not
pass clang-tidy in isolation. This adds a new `no-clang-tidy-headers`
tag that can be added to libraries so that only their source files are
clang-tidy'd
@erenon erenon merged commit a01e5e2 into erenon:master Oct 9, 2024
1 check passed
@erenon
Copy link
Owner

erenon commented Oct 9, 2024

Thanks! merged. I think it is wasteful to check the extension multiple types (in check_valid_file_types and at the end), perhaps those two should be merged.

@keith keith deleted the ks/allow-disabling-clang-tidy-only-for-headers branch December 11, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants