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

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 09:10:57 PDT 2025


================
@@ -110,6 +110,13 @@ Options
     // No warning
     int const& ref = i;
 
+.. option:: AnalyzePointers
+
+  Enable or disable the analysis of pointers variables, like
+  ``int *ptr = &i;``. For specific checks, see options 
+  `WarnPointersAsValues` and `WarnPointersAsPointers`.
----------------
EugeneZelenko wrote:

`:option:` prefix should be added to both options.

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


More information about the cfe-commits mailing list