Open harsszegi opened 10 months ago
@llvm/issue-subscribers-clang-frontend
Author: Tibor Harsszegi (harsszegi)
@PiotrZSL: Could you help, please?
To be honest. I never used cursors to visit AST, always directly with AstMatchers or RecursiveASTVisitor.
Hi,
when I dump the AST with clang I can clearly see the ClassTemplateSpecializationDecl and all the specialized member functions, constructors, etc. with CXXMethodDecl and CXXConstructorDecl and all the parameters are specialized already.
How can I achieve the same with VisitChildren? If I visit a cursor which is CX_DeclKind.CX_DeclKind_ClassTemplateSpecialization, I get TSK_Undeclared for the specializationkind, so nothing is visited. If I visit cursor's "SpecializedCursorTemplate", I receive the unspecialized template itself, which makes not much use for me. So how can I achieve the same outcome with visitors what I get with AST dump, .e.g. get the fully specialized template instance? Thanks,