Esempio n. 1
0
// CINDEX_LINKAGE int clang_Cursor_getNumArguments(CXCursor C);
func (c Cursor) NumArguments() int {
	n := C.clang_Cursor_getNumArguments(c.c)
	return int(n)
}
Esempio n. 2
0
/*
	Retrieve the number of non-variadic arguments associated with a given
	cursor.

	The number of arguments can be determined for calls as well as for
	declarations of functions or methods. For other cursors -1 is returned.
*/
func (c Cursor) NumArguments() int32 {
	return int32(C.clang_Cursor_getNumArguments(c.c))
}