[clang] [clang-tools-extra] [clang][Analysis] Handle const-qualified pointer refs in `ExprMutationAnalyzer` (PR #190421)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 14 07:21:34 PDT 2026


================
@@ -317,6 +317,9 @@ Changes in existing checks
   - Fixed false positive where a pointer used with placement new was
     incorrectly diagnosed as allowing the pointee to be made ``const``.
 
+  - Fixed false positives when pointers were later passed or bound through
+    const-qualified pointer references.
----------------
vbvictor wrote:

```suggestion
    ``const``-qualified pointer references.
```

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


More information about the cfe-commits mailing list