Ejemplo n.º 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)
}
Ejemplo n.º 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)
}
Ejemplo n.º 3
0
func (index *Index) Dispose() {
	if index != nil && index.ptr != nil {
		C.clang_disposeIndex(index.ptr)
		index.ptr = nil
	}
}