[cfe-dev] renaming a Type
Vladimir Kirillov
proger at uaoug.org.ua
Fri Aug 27 15:48:48 PDT 2010
On 10:03 Fri 27 Aug, John McCall wrote:
> On Aug 27, 2010, at 4:40 AM, Vladimir Kirillov wrote:
> > I took a brief look into the IdentifierInfo and TypePrinter,
> > but the IdentifierInfo::getNameStart() method uses some weird
> > identifier lookups, so i'm asking for help here.
>
> The ASTContext has a reference to the IdentifierTable, which has
> IdentifierTable::get(...). I think that's what you're looking for.
Right. Assuming I have looked up the type's IdentifierInfo, how to
change the name of this type in a proper way? Is there anything like
IdentifierInfo::setName()?
More information about the cfe-dev
mailing list