[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
Wed Mar 12 01:03:16 PDT 2025


================
@@ -125,6 +132,22 @@ Options
     // No warning
     const int *const pointer_variable = &value;
 
+.. option:: WarnPointersAsPointers
+
+  This option enables the suggestion for ``const`` of the value pointing.
----------------
vbvictor wrote:

```suggestion
  This option enables the suggestion for ``const`` of the value pointing to.
```

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


More information about the cfe-commits mailing list