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