示例#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
}
示例#2
0
// Retrieve the number of chunks in the given code-completion string.
func (cs CompletionString) NumChunks() uint32 {
	return uint32(C.clang_getNumCompletionChunks(cs.c))
}