[clang-tools-extra] [clang-tidy] support pointee mutation check in misc-const-correctness (PR #130494)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 09:59:37 PDT 2025


================
@@ -0,0 +1,50 @@
+// RUN: %check_clang_tidy %s misc-const-correctness %t \
----------------
vbvictor wrote:

Consider adding a test with both `WarnPointersAsValues` and `WarnPointersAsPointers` set to `true`.
According to the code it should add two `const` keywords.

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


More information about the cfe-commits mailing list