<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style> body {  font-family: "Calibri","Slate Pro",sans-serif,"sans-serif"; color:#262626 }</style> </head> <body lang="ru-RU"><div><div><font face="Calibri, Slate Pro, sans-serif, sans-serif">Hello,</font></div><div><font face="Calibri, Slate Pro, sans-serif, sans-serif"><br></font></div><div><font face="Calibri, Slate Pro, sans-serif, sans-serif">I am trying to collect all template instantiations via traversing AST with RecursiveASTVisitor. I thought I would be able to do it with VisitFunctionDecl from class visitor and getTemplateInstantiationPattern from class FunctionDecl. However, as mentioned in the comment to this method, it just returns the function declaration, from wich it could be instantiated. I discovered that this method returns the first acceptable pattern from the context of instantiation. Is there any way to get a real pattern out of a function template instantiation?</font></div></div></body></html>