-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Links to docs for clang-tidy checks use incorrect version #12804
Comments
Update (related to issue #12806 and PR #12813): Even though the
So maybe the version that is determined in vscode-cpptools/Extension/src/LanguageServer/settings.ts Lines 273 to 320 in 292d84f
Seems like an easy enough fix, if I had time I would have just written my own PR, but this is a very busy month 😞 |
This should be fixed by #12834 for 1.23.0. |
@sean-mcmanus That's great, thanks! Although, if I understand correctly, now v19.1.0 is hard-coded into the script, so as soon as a new version (e.g. 19.2.0 or 20.1.0) is released with some new checks, the URL will be incorrect again ☹ |
@bshoshany and @sean-mcmanus I agree this is not fixed per se. Since it is hard coded this will always be a problem. |
I noticed that there are also clang-tidy documentation URLs that are version-independent (or more precisely, automatically lead to the latest version). For example, instead of: We can use: https://clang.llvm.org/extra/clang-tidy/checks/misc/include-cleaner.html The only disadvantage of using this is that if someone is using an older version of clang-tidy, this might show some additional features that were added to the same check in newer versions but do not exist in the older version, but this is definitely better than not seeing the documentation for the check at all. |
Sorry, I accidentally pressed the wrong button and closed the issue, and now I can't reopen it, can someone please reopen it? @sean-mcmanus |
Environment
Bug Summary and Steps to Reproduce
When using clang-tidy, diagnostic messages displayed in the problems pane contain helpful links to the check's documentation on llvm.org. However, the link is to a version that does not match the version of clang-tidy being used. I noticed this after upgrading LLVM to v19.1.0. This version introduced some new clang-tidy checks, such as
use-std-min-max
, which did not exist in previous versions. But the link provided by the extension is:https://releases.llvm.org/18.1.6/tools/clang/tools/extra/docs/clang-tidy/checks/readability/use-std-min-max.html
This link does not work, because it links to the page for v18.1.6, which did not have this particular check. The correct link is:
https://releases.llvm.org/19.1.0/tools/clang/tools/extra/docs/clang-tidy/checks/readability/use-std-min-max.html
Which does work. I'm not sure why it links to 18.1.6, because the bundled version is actually 18.1.8, but in any case I think the extension needs to do
clang-tidy --version
on whatever binary it's using, and then provide a link to the correct version.Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: