Exemple #1
0
func (cs CompletionString) Chunks() (ret []CompletionChunk) {
	ret = make([]CompletionChunk, C.clang_getNumCompletionChunks(cs.c))
	for i := range ret {
		ret[i].cs = cs.c
		ret[i].number = C.uint(i)
	}
	return
}
// Retrieve the number of chunks in the given code-completion string.
func (cs CompletionString) NumChunks() uint32 {
	return uint32(C.clang_getNumCompletionChunks(cs.c))
}