Hello all!
I use RecursiveASTVisitor to pass over the top level declarations.
I determined the VisitDecl method in class derived from RecursiveASTVisitor
as:
bool MyASTVisitor::VisitDecl (Decl * D){
D -> dump();
}
I use the test example:
--- 1.cpp ---
template <class T> void templ_a(T x){
int b = 123;
}
int main(){
int a = 123;
templ_a<int>(a);
return 0;
}