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

Add global option to disable running clang-tidy on headers #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnor
Copy link
Contributor

@johnor johnor commented Nov 15, 2024

No description provided.

@erenon
Copy link
Owner

erenon commented Nov 18, 2024

Hi, thanks for the PR. FMI, what's the difference between this approach and using --exclude-header-filter= ? https://clang.llvm.org/extra/clang-tidy/

@johnor
Copy link
Contributor Author

johnor commented Nov 27, 2024

@erenon Hi, sorry for the late reply. I updated the commit message with some more information. I think it should answer your questions. Let me know otherwise!

* Commit f43f9d6 added support to run
  clang-tidy on headers. After that commit, all headers will be checked
  by clang-tidy.
* Commit f43f9d6 added a tag to make it
  possible to not run clang-tidy on specific libraries.
* For projects that only want to run clang-tidy on source files, the
  only way to disable running clang-tidy on headers is to add the above
  mentioned tag to all libraries. For large projects this requires
  changing all BUILD files. This commit adds a global option instead to
  always disable running clang-tidy on headers.
@johnor
Copy link
Contributor Author

johnor commented Nov 27, 2024

Fixed usage with bzlmod also, I had missed that first.

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