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

Bazel does not cache clang-tidy reports #41

Open
damien-projectx opened this issue Mar 16, 2023 · 0 comments
Open

Bazel does not cache clang-tidy reports #41

damien-projectx opened this issue Mar 16, 2023 · 0 comments

Comments

@damien-projectx
Copy link

Running the same command twice runs clang-tidy on all the files each time, which seems to indicate that the reports are not cached. Command used:

bazel build --config=clang-tidy //...

.bazelrc

build:clang-tidy --copt=-I/usr/local/local_archive/googletest-release-1.12.1/googletest/include
build:clang-tidy --copt=-I/usr/local/local_archive/googletest-release-1.12.1/googlemock/include
build:clang-tidy --aspects @bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect
build:clang-tidy --output_groups=report
build:clang-tidy --@bazel_clang_tidy//:clang_tidy_config=//:.clang-tidy
build:clang-tidy --build_tag_filters=-no-clang-tidy

Also, we need to use --copt=-I to add the paths to the header files for local repositories despite the fact that these headers are already referenced in cc_library().

Thank you for your help.

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

No branches or pull requests

1 participant