Hi Richard, Thank you for your reply. Yes, the case I need to deal with is like what you said:
> If you want to make the assumption that the primary template will be > used for an unknown specialization, you'll need something like that > function in ASTMatchFinder. For example, 1. template <typename T> 2. struct Base {}; 3. template <typename T> 4. struct Derived : Base<T>{}; 5. 6. Derived<int> T1; In this case, I need to firstly get the CXXBaseSpecifier from line 4, then get the QualType of primary template (Base<T>), then get its declaration. For this case, that function in ASTMatchFinder works but Type::getAsCXXRecordDecl does not. So, what do you suggest? Best regards, Cong
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits