ASTMatchers: isVirtual and isOverride

Hi,

if (Result.Nodes.getNodeAsclang::CXXConstructorDecl(“matcher1”)) {

I usually do this:

if(const CXXConstructorDecl* ctor = Result.Nodes.getNodeAs(“matcher1”)) { … }

template
void process(const T* Node) {

I would recommend against this. Template metaprogramming gives you no advantages here so far as I can see. Use overloading and polymorphism instead.

Gabor