示例#1
0
文件: type.go 项目: zimmski/go-clang
// Declaration returns the cursor for the declaration of the given type.
func (t Type) Declaration() Cursor {
	o := C.clang_getTypeDeclaration(t.c)
	return Cursor{o}
}
示例#2
0
文件: type_gen.go 项目: go-clang/v3.4
// Return the cursor for the declaration of the given type.
func (t Type) Declaration() Cursor {
	return Cursor{C.clang_getTypeDeclaration(t.c)}
}