示例#1
0
// Dispose destroys the given index.
//
// The index must not be destroyed until all of the translation units created
// within that index have been destroyed.
func (idx Index) Dispose() {
	C.clang_disposeIndex(idx.c)
}
示例#2
0
/*
	Destroy the given index.

	The index must not be destroyed until all of the translation units created
	within that index have been destroyed.
*/
func (i Index) Dispose() {
	C.clang_disposeIndex(i.c)
}
示例#3
0
func (index *Index) Dispose() {
	if index != nil && index.ptr != nil {
		C.clang_disposeIndex(index.ptr)
		index.ptr = nil
	}
}