ΒΆenum CXCursorKind clang_getTemplateCursorKind(
CXCursor C)
enum CXCursorKind clang_getTemplateCursorKind(
CXCursor C)
Description
Given a cursor that represents a template, determine the cursor kind of the specializations would be generated by instantiating the template. This routine can be used to determine what flavor of function template, class template, or class template partial specialization is stored in the cursor. For example, it can describe whether a class template cursor is declared with "struct", "class" or "union".
Declared at: clang/include/clang-c/Index.h:4932
Parameters
- CXCursor C
- The cursor to query. This cursor should represent a template declaration.
Returns
The cursor kind of the specializations that would be generated by instantiating the template \p C. If \p C is not a template, returns\c CXCursor_NoDeclFound.