示例#1
0
// IsDeclaration determines whether the cursor kind represents a declaration
func (ck CursorKind) IsDeclaration() bool {
	o := C.clang_isDeclaration(uint32(ck))
	if o != C.uint(0) {
		return true
	}
	return false
}
示例#2
0
// Determine whether the given cursor kind represents a declaration.
func (ck CursorKind) IsDeclaration() bool {
	o := C.clang_isDeclaration(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}