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

Daniil Dudkin via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 14:10:56 PDT 2026


================
@@ -227,6 +238,12 @@ const auto nonConstReferenceType = [] {
       referenceType(pointee(unless(isConstQualified()))));
 };
 
+const auto referenceToPointerWithNonConstPointeeType = [] {
+  return hasUnqualifiedDesugaredType(
+      referenceType(pointee(hasUnqualifiedDesugaredType(
----------------
unterumarmung wrote:

Done, narrowed the matcher to specifically target const-qualified pointer references.

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


More information about the cfe-commits mailing list