[cfe-dev] Builtin types

Phil King phil_king at rocketmail.com
Wed Feb 22 15:55:15 PST 2012


Thanks, that gets me what I need. :-)

Using the AnalysisContext in a StmtVisitor I can do:

QualType T = AC->getASTContext().BoolTy;

etc. Phil.



----- Original Message -----
From: Eli Friedman <eli.friedman at gmail.com>
To: Phil King <phil_king at rocketmail.com>
Cc: Clang dev mailing list <cfe-dev at cs.uiuc.edu>
Sent: Wednesday, 22 February 2012, 22:51
Subject: Re: [cfe-dev] Builtin types

On Wed, Feb 22, 2012 at 2:45 PM, Phil King <phil_king at rocketmail.com> wrote:
> Thanks, but that gives the 'Kind' for a builtin.
>
> I want to go from a 'Kind' to its canonical QualType. Phil.

Oh... no, I don't think there isn't any way to do that, AFAIK.  The
relevant types are available on ASTContext.

-Eli


>
>
>
> ----- Original Message -----
> From: Eli Friedman <eli.friedman at gmail.com>
> To: Phil King <phil_king at rocketmail.com>
> Cc: Clang dev mailing list <cfe-dev at cs.uiuc.edu>
> Sent: Wednesday, 22 February 2012, 22:15
> Subject: Re: [cfe-dev] Builtin types
>
> On Wed, Feb 22, 2012 at 2:07 PM, Phil King <phil_king at rocketmail.com> wrote:
>> Is there a way to get a BuiltinType * (or a Type *) to a BuiltinType::Kind ?
>
> BuiltinType::getKind()
>
> -Eli
>





More information about the cfe-dev mailing list