ΒΆCXType clang_Cursor_getTemplateArgumentType(
    CXCursor C,
    unsigned int I)

Description

Retrieve a CXType representing the type of a TemplateArgument of a function decl representing a template specialization. If the argument CXCursor does not represent a FunctionDecl whose I'th template argument has a kind of CXTemplateArgKind_Integral, an invalid type is returned. For example, for the following declaration and specialization: template <typename T, int kInt, bool kBool> void foo() { ... } template < > void foo <float , -7, true>(); If called with I = 0, "float", will be returned. Invalid types will be returned for I == 1 or 2.

Declared at: clang/include/clang-c/Index.h:3648

Parameters

CXCursor C
unsigned int I