示例#1
0
// Contains queries a CursorSet to see if it contains a specific Cursor
func (c CursorSet) Contains(cursor Cursor) bool {
	o := C.clang_CXCursorSet_contains(c.c, cursor.c)
	if o != C.uint(0) {
		return true
	}
	return false
}
示例#2
0
/*
	Queries a CXCursorSet to see if it contains a specific CXCursor.

	Returns non-zero if the set contains the specified cursor.
*/
func (cs CursorSet) Contains(cursor Cursor) uint32 {
	return uint32(C.clang_CXCursorSet_contains(cs.c, cursor.c))
}