-
Notifications
You must be signed in to change notification settings - Fork 117
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
[Self-Filed] [Feature] Running clang-tidy from the command line #52
Comments
An issue that I have with the solution I specified in this comment is that clang-tidy runs sequentially for each code, and It has no caching. So it is very slow for a large project. So, I guess a Bazel-based solution would be useful here. How hard is it to make bazel-clang-tidy aware of this package? I think it is a matter of checking the existence of |
Right o. Yeah, I think the trickiness here is that you need aspects to get the caching, but you need to use aquery (not aspects) to get the right build command. |
My quick take on the best way to break down each part:
I probably shouldn't take the lead on this one right now, given everything else going on. But if you take a shot, I'd be down to help! In short: Would recommend using this tool with |
Hey all! Self-filing an issue to collect interest and feedback.
Some people have been using this tool and compile_commands.json to run clang-tidy from the command line. [Clang-tidy can also run as part of clangd while editing.] Sounds like other tools have some issues around headers, which we can solve.
Doing this well would probably involve creating a target that builds a script that runs a bazel-cached clang-tidy aspect over the codebase.
LMK if interested. Would love some help on this one. I do think it'd be much easier to build well within the context of this tool than standalone.
The text was updated successfully, but these errors were encountered: