Example #1
0
/**
 * \brief 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".
 *
 * \param 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.
 */
func (c Cursor) TemplateCursorKind() CursorKind {
	o := C.clang_getTemplateCursorKind(c.c)
	return CursorKind(o)
}
Example #2
0
/*
	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".

	Parameter 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
	CXCursor_NoDeclFound.
*/
func (c Cursor) TemplateCursorKind() CursorKind {
	return CursorKind(C.clang_getTemplateCursorKind(c.c))
}