Beispiel #1
0
// 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)))
}
Beispiel #2
0
/**
 * \brief Free the given set of tokens.
 */
func (t Tokens) Dispose() {
	C.clang_disposeTokens(t.tu, t.c, t.n)
}