Is there a way to get a BuiltinType * (or a Type *) to a BuiltinType::Kind ?
Phil.
Is there a way to get a BuiltinType * (or a Type *) to a BuiltinType::Kind ?
Phil.
BuiltinType::getKind()
-Eli
Thanks, but that gives the 'Kind' for a builtin.
I want to go from a 'Kind' to its canonical QualType. Phil.
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
Thanks, that gets me what I need.
Using the AnalysisContext in a StmtVisitor I can do:
QualType T = AC->getASTContext().BoolTy;
etc. Phil.