ΒΆlong long clang_Cursor_getTemplateArgumentValue(
    CXCursor C,
    unsigned int I)

Description

Retrieve the value of an Integral TemplateArgument (of a function decl representing a template specialization) as a signed long long. It is undefined to call this function on a CXCursor that does not represent a FunctionDecl or whose I'th template argument is not an integral value. 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 = 1 or 2, -7 or true will be returned, respectively. For I == 0, this function's behavior is undefined.

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

Parameters

CXCursor C
unsigned int I