[cfe-dev] How to determine if TemplateTypeParmType is template specialization argument?

Konstantin Tokarev annulen at yandex.ru
Tue Oct 16 12:45:58 PDT 2012


Hi all,

I'd like to distinguish T in contexts (1) and (2):

template<typename T>
class B<T, int>                    // 1
{
public:
    static void hello() {}
    T t;                                  // 2
    int t2;
};

Currently I implement VisitTemplateTypeParmTypeLoc in RecursiveASTVisitor, but it visits both 1 and 2, and I need to skip usages of T in contexts like (1).

-- 
Regards,
Konstantin



More information about the cfe-dev mailing list