[PATCH] D56849: [ASTMatchers][NFC] Update comments on assorted `CXXMemberCallExpr` matchers.
Stephen Kelly via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 17 06:49:18 PST 2019
steveire added inline comments.
================
Comment at: clang/docs/LibASTMatchersReference.html:4823
+ matches "x.m", but not "m"
+memberExpr(hasObjectExpression(hasType(pointsTo(
+ cxxRecordDecl(hasName("X"))))))
----------------
If we're going to put such examples and details into the docs, maybe we should explain why things are and are not matched. What do you think?
It seems in this case the type of the object expression of `m` is `X*` because of the hidden `this->`?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56849/new/
https://reviews.llvm.org/D56849
More information about the cfe-commits
mailing list