// Free the given set of tokens. func (tu TranslationUnit) DisposeTokens(tokens []Token) { gos_tokens := (*reflect.SliceHeader)(unsafe.Pointer(&tokens)) cp_tokens := (*C.CXToken)(unsafe.Pointer(gos_tokens.Data)) C.clang_disposeTokens(tu.c, cp_tokens, C.uint(len(tokens))) }
/** * \brief Free the given set of tokens. */ func (t Tokens) Dispose() { C.clang_disposeTokens(t.tu, t.c, t.n) }