[cfe-dev] Recover TypeDecl* from QualType

Eli Friedman eli.friedman at gmail.com
Sat Jul 6 14:33:54 PDT 2013


On Sat, Jul 6, 2013 at 2:26 PM, Victor Vicente de Carvalho
<victor.v.carvalho at gmail.com> wrote:
> It's possible to recover the TypeDecl* from a QualType (or it's underlying
> Type*)?
>

There isn't a generic method, but you can do it for specific types,
e.g. RecordType has a getDecl() method.

-Eli



More information about the cfe-dev mailing list