[cfe-dev] Unique Identifier for template functions?
John McCall
rjmccall at apple.com
Fri Aug 10 12:20:51 PDT 2012
On Aug 10, 2012, at 11:13 AM, Michael Lehn wrote:
> when parsing some C++ code with libclang, is there a way to get a unique
> identifier for a template function?
>
> For most cases "clang_getCursorUSR" is exactly doing what I need. However,
> when using some common trait tricks a mangled C++ name is no longer unique.
> E.g. the code snippet below defines two variants of function "dummy" and both
> have the same mangled name (but the trait makes sure that only one of them
> can get instantiated).
Is this "mangling" in the sense of the USR mangling? They certainly don't
have the same ABI mangling.
John.
More information about the cfe-dev
mailing list