[clang-tools-extra] [clang-tidy][misc-const-correctness] fix fp when using const array type. (PR #133018)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 26 12:57:36 PDT 2025


================
@@ -89,6 +89,8 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder *Finder) {
   const auto ConstReference = hasType(references(isConstQualified()));
----------------
carlosgalvezp wrote:

On line 86 it appears the author intended to handle "const arrays" in the "pointee check". They are indeed handled correctly if one of the options is true (I don't recall which one). Is there a bug in that check that we should fix instead?

https://github.com/llvm/llvm-project/pull/133018


More information about the cfe-commits mailing list