[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
Thu Mar 27 04:31:28 PDT 2025
================
@@ -89,6 +89,8 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder *Finder) {
const auto ConstReference = hasType(references(isConstQualified()));
----------------
carlosgalvezp wrote:
All the tests (including the FP at hand) pass if you remove `unless(arrayType()` from line 87 (as well as the part of the comment), so I think it would be preferable to do that instead of creating a `ConstArrayType`.
https://github.com/llvm/llvm-project/pull/133018
More information about the cfe-commits
mailing list