I don't know which API you're using, but
clang::NamedDecl::getQualifiedNameAsString seems to do what you want.
> Le 30 août 2016 à 17:40, David Blaikie via cfe-users
> a écrit :
>
> Do you want to identify the same entity across a valid program's various
> source files? Across changes to that
Hi
Hope I picked the right place for this kind of problem, if not please
let me know.
I'm using libclang to parse header files and generate code from them. I
found that clang_getTypeSpelling() usually includes the namespace(s) a
type was declared in. However with the exception being typedefs
Do you want to identify the same entity across a valid program's various
source files? Across changes to that program? (what changes?)
If you want to do the former, then producing the mangled name of the entity
is probably what you want. (some part of the ABI code in Clang could give
you that, I w
Maybe I could expand a name into its full name and use that.
e.g.:
namespace bla { class myclass { void mymethod() { } } }
then the full name of mymethod would be bla::myclass::mymethod would be
unique enough to me (including filename).
Can I somehow get this out of it?
On Fri, Aug 26, 2016 at 0