[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
================
@@ -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.
+ Default is `true`.
+
+ Requires 'AnalyzePointers' to be 'true'.
----------------
EugeneZelenko wrote:
```suggestion
Requires :option:`AnalyzePointers` to be `true`.
```
https://github.com/llvm/llvm-project/pull/130494
More information about the llvm-branch-commits
mailing list