[cfe-dev] Recovering an unique ID for an unqualified type

Victor Vicente de Carvalho victor.v.carvalho at gmail.com
Sun Dec 2 11:09:18 PST 2012


Does clang stores some sort of unique ID for type definitions? I could
generate manually this id for each time I stumble upon a new QualType but
I'm looking if this is already made by the library.

Another question, Is possible to verify if a QualType is of some class X?
like:

QualType t;

if (t.isofclass<std::string>()) {
}


Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121202/73111b05/attachment.html>


More information about the cfe-dev mailing list