Example #1
0
/**
 * \brief Retrieve the result type associated with a given cursor.  This only
 *  returns a valid type of the cursor refers to a function or method.
 */
func (c Cursor) ResultType() Type {
	o := C.clang_getCursorResultType(c.c)
	return Type{o}
}
Example #2
0
/*
	Retrieve the return type associated with a given cursor.

	This only returns a valid type if the cursor refers to a function or method.
*/
func (c Cursor) ResultType() Type {
	return Type{C.clang_getCursorResultType(c.c)}
}