[clang] [analyzer] Fix note for member reference (PR #68691)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 12 04:55:59 PDT 2023


================
@@ -132,6 +132,18 @@ const Expr *bugreporter::getDerefExpr(const Stmt *S) {
     }
     // Pattern match for a few useful cases: a[0], p->f, *p etc.
     else if (const auto *ME = dyn_cast<MemberExpr>(E)) {
+      // This handles the case when the dereferencing of a member reference
+      // happens. This is needed, because the ast for dereferencing of a
----------------
DonatNagyE wrote:

```suggestion
      // happens. This is needed, because the AST for dereferencing a
```

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


More information about the cfe-commits mailing list