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

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 26 11:13:01 PDT 2025


================
@@ -169,6 +172,7 @@ void ConstCorrectnessCheck::check(const MatchFinder::MatchResult &Result) {
     if (ArrayT->getElementType()->isPointerType())
       VC = VariableCategory::Pointer;
   }
+  llvm::errs() << (int)VC << "\n";
----------------
HerrCai0907 wrote:

```suggestion
```


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


More information about the cfe-commits mailing list