-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Adding first version for which clang-tidy checks and their options are available #162937
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
base: main
Are you sure you want to change the base?
Conversation
7cfb31a to
5e172a0
Compare
5e172a0 to
113ef58
Compare
|
Hi, right now I have limited ability to process everything, so I wouldn't answer to all questions, sorry. But I have some general comments on how we should proceed. Let's go with small, separate PRs to focus on one thing at a time:
|
|
Hello vbvictor!
Does that mean I should make a separate PR with only this script for people to review it? Or upload it somewhere (Gist?) and share it for review (if so, which platform should I share it on? Discourse? Discord?).
|
I think we can put it as a PR in LLVM, it's the most convenient place to look at code. The benefits of review are:
|
|
I think we have a pretty low quality bar for scripts (not professional python devs) so it should be quite easy to follow LLVM style guide. You can use LLM to make your script "look like" other scripts in clang-tidy directory. |
Yes, we should patch How we patch |
Yes, let's go for the latest version (15.0.7). |
Ok it makes sense indeed. |
Since my script is based on releases listed on this GitHub repository, the first version I got information from is the v7. However, I can modify it to get information from the version 4, it should not be too hard to fetch it. |
As discussed on discourse, I have been working on adding the first version for which each clang-tidy checks and their options are available in the documentation.
I have made a Python script (not included in that PR) to track down the available checks/options for each LLVM releases (using the GitHub API to accurately gather/download the releases and then building them from sources).
The draft includes a lot of changes but since those changes were automatically generated by the script, they can easily be tuned if you think they should.
Here is a small summary of the modifications I have made:
clang-tools-extra/docs/clang-tidy/checks/list.rstfile).clang-tools-extra/docs/clang-tidy/checkssubfolders).clang-tools-extra/docs/_static/clang-tools-extra-styles.cssfile and add the following code toclang-tools-extra/docs/clang-tidy/checks/list.rstfile to allow me to use strike-through:As I was working on this PR, few questions came to my mind:
I am not sure whether I should mention people (and who) for this draft PR but since you have been following this project on that Discourse discussion, I will invoke you @vbvictor! :p