[cfe-dev] Creating IdentifierInfo object from a string token

Amila Jayasekara thejaka.amila at gmail.com
Mon Jun 1 08:01:09 PDT 2015


Hello,

I am using Clang to develop some extensions on C99. I want to do some
transformations to Clang generated AST. So far I did some changes related
to declarations. Now I want to do some semantic checking on tokens i am
introducing in the middle of compilation process. Following function does
exactly what I want to do;

ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation
NameLoc, ....)

In SemaDecl.cpp (L201).

But inorder to call above function I need to craft a IdentifierInfo object
from a string. What is the best way to create IdentifierInfo object without
 querying IdentifierTable ?

Appreciate your help on this.

Thank you
Regards
-Thejaka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150601/88143626/attachment.html>


More information about the cfe-dev mailing list