[cfe-dev] libclang and MemberRefExpr

Erik Verbruggen erik.verbruggen at me.com
Thu May 12 05:52:48 PDT 2011


Hello,

When using the visitor functions in libclang, I noticed that for a member-access I get a MemberRefExpr containing a DeclRefExpr. The CXSourceRange for the DeclRefExpr covers the base expression and the CXSourceRange for the MemberRefExpr covers the whole expression. So the question is: how can I get the CXSourceRange covering the id-expression for the member itself? I.e., for "x.y", how can I get the range for "y"?

Thanks,
Erik. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110512/a2c89979/attachment.html>


More information about the cfe-dev mailing list