[cfe-dev] [libClang] Get name of method parameter or variable type
Sam Vanheer via cfe-dev
cfe-dev at lists.llvm.org
Sun Jun 11 13:13:11 PDT 2017
I'm trying to get the name of method parameter and variable types, but
the name returned by clang_getTypeSpelling contains part of the type as
used, like "const", "&", etc.
Is there any way to use libClang's API to get just the name of the type,
without any of these additions? I'm currently removing these from the
name manually, but it seems superfluous when Clang already has it.
More information about the cfe-dev
mailing list