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
misc-const-correctness
not reported for C code
#56958
Comments
@llvm/issue-subscribers-clang-tidy |
@JonasToth I feel like a quick fix is to just update the documentation to say this doesn't run on |
The language restriction was added during review. |
@njames93 i included the limitation in this patch: https://reviews.llvm.org/D132244 |
Improve the documentation for 'misc-const-correctness' to: - include better examples - improve the english - fix links to other checks that were broken due to the directory-layout changes - mention the limitation that the check does not run on `C` code. Addresses #56749, #56958 Reviewed By: njames93 Differential Revision: https://reviews.llvm.org/D132244
Improve the documentation for 'misc-const-correctness' to: - include better examples - improve the english - fix links to other checks that were broken due to the directory-layout changes - mention the limitation that the check does not run on `C` code. Addresses #56749, #56958 Reviewed By: njames93 Differential Revision: https://reviews.llvm.org/D132244 (cherry picked from commit b5b7503)
https://godbolt.org/z/Tzrb1Yvxq
The documentation refers to C++ coding standards but there's no mention that the check will only be performed on C++ code.
The text was updated successfully, but these errors were encountered: