[cfe-dev] Parsing C++ Header File

Konstantin Tokarev annulen at yandex.ru
Wed May 29 04:15:20 PDT 2013


29.05.2013, 14:41, "Raghavendra Keshav" <ragavendrakk at gmail.com>:
> Am not able get the relationship of FieldDecl to CTemplateDecl...

Use getParent(), than dyn_cast it to CXXRecordDecl, than use
getDescribedClassTemplate()

> and from CTemplateDecl how to extract the params?

TemplateDecl::getTemplateParameters()

> Pls provide direction how to proceed further...

Use Rewriter to modify source code.


-- 
Regards,
Konstantin



More information about the cfe-dev mailing list