ASTMatchers: isVirtual and isOverride

Thank you very much Gábor,

I’m using clang version 3.3, but indeed the isVirtual and isOverride matchers aren’t present in my ASTMatchers.h. If other matchers are missing, I already know where to look for, thanks.

Also, instead of isDefaultConstructor(), you could use argumentCountIs(0).

What I meant to do is to fetch the node of the default constructor method declaration in order to delete it, not where the calls to that constructor were made, so your suggestion is not what I need. Any other suggestion? I would like to know as well if the default constructor is not empty (i.e., i don’t want to fetch a constructor like Foo(){}, but a constructor like Foo(){ a=0;} or Foo():Bar(){})

Thanks,

Pedro.

El dia 19 abr 2013 01:58, Gábor Kozár kozargabor@gmail.com escribió: