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

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 10 07:51:05 PDT 2025


================
@@ -200,6 +223,27 @@ Options
     int *changing_pointee = &value;
     changing_pointee = &result;
 
+.. option:: TransformPointersAsPointers
+
+  Provides fixit-hints for pointers if the value it pointing to is not changed.
+  Default is `false`.
+
+  Requires 'WarnPointersAsPointers' to be 'true'.
----------------
EugeneZelenko wrote:

```suggestion
  Requires :option:`WarnPointersAsPointers` to be `true`.
```

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


More information about the llvm-branch-commits mailing list