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 externalInclude information to compilation_context #18094

Closed
wants to merge 1 commit into from

Conversation

adrianimboden
Copy link
Contributor

Hi bazel team

I use an aspect to run clangtidy on the codebase. It is based on https://github.com/erenon/bazel_clang_tidy.

To check my codebase with -Werror, I use the "new" feature external_include_path requested by #12009, introduced by commit 08936ae.

Now my clangtidy rules did not work anymore of course. As you can see in https://github.com/erenon/bazel_clang_tidy/blob/master/clang_tidy/clang_tidy.bzl, all the different include paths are being passed to the clang-tidy executable. I now also needed to pass the new external_includes to clang-tidy.

This PR adds external_includes to the compilation_context object. I looked at the style of the other includes and hope it is in line with your expectations.

@adrianimboden adrianimboden requested a review from lberki as a code owner April 13, 2023 23:15
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Apr 13, 2023
@sgowroji sgowroji added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Apr 14, 2023
@lberki lberki requested review from buildbreaker2021 and removed request for lberki April 14, 2023 08:29
@gregestren gregestren added team-Rules-CPP Issues for C++ rules and removed team-Configurability platforms, toolchains, cquery, select(), config transitions labels May 10, 2023
@fmeum
Copy link
Collaborator

fmeum commented Jun 18, 2023

@buildbreaker2021 Friendly ping

@oquenchil oquenchil self-assigned this Jul 3, 2023
@oquenchil oquenchil added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Jul 3, 2023
@oquenchil
Copy link
Contributor

Everything is failing on CI when triggering OSS presubmits internally: https://buildkite.com/bazel/google-bazel-presubmit/builds/68979#01891f2d-392a-42eb-bde3-ddb81d13e7b9

@adrianimboden
Copy link
Contributor Author

I rebased the changes

@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-CPP Issues for C++ rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants