[cfe-commits] [PATCH] ThisExpr matcher

Gábor Horváth xazax.hun at gmail.com
Mon Oct 22 03:06:45 PDT 2012

  Oh, I come up with an example, where memberExpr do not work.

  struct Z {
    int x;

  class Y {
      void x() {Z y; y.x;}

  There is y.x is a memberExpr, however it is not belongs to the class Y, so it is not it's state.
  In the AST as far as I can see, in this example the child of the memberExpr is a DeclRefExpr, however I don't know if it is safe to rely on that.


More information about the cfe-commits mailing list