[cfe-dev] Result Type of a Template Function

Tobias Guennewig t_guen03 at uni-muenster.de
Wed Jul 13 06:29:06 PDT 2011


Hi,

i wonder if there is a way to retrieve the return type of a template
function. The function clang_getResultType works for cursors, whose
'kind' property is CXCursor_FunctionDecl. For a
CXCursor_FunctionTemplate it says, 'CXType_Invalid'. Can someone tell me
the reason for this behavior?

Thanks,
Tobias




More information about the cfe-dev mailing list