[clang] Different info in docs in AST methods (PR #112190)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 12:15:01 PDT 2024


================
@@ -4199,7 +4199,7 @@ AST_MATCHER_P_OVERLOAD(QualType, references, internal::Matcher<Decl>,
 ///     cxxRecordDecl(hasName("Y")))))
 ///   matches `y.m()`, `x.m()` and (g()).m(), but not `x.g()`.
 /// cxxMemberCallExpr(on(callExpr()))
-///   does not match `(g()).m()`, because the parens are not ignored.
+///   does match `(g()).m()`, because the parens are ignored.
----------------
AaronBallman wrote:

```suggestion
///   only matches `(g()).m()` (the parens are ignored).
```
How about this, based on: https://godbolt.org/z/Tn46qaEdc

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


More information about the cfe-commits mailing list