示例#1
0
/*
	Sort the code-completion results in case-insensitive alphabetical
	order.

	Parameter Results The set of results to sort.
	Parameter NumResults The number of results in \p Results.
*/
func SortCodeCompletionResults(results []CompletionResult) {
	gos_results := (*reflect.SliceHeader)(unsafe.Pointer(&results))
	cp_results := (*C.CXCompletionResult)(unsafe.Pointer(gos_results.Data))

	C.clang_sortCodeCompletionResults(cp_results, C.uint(len(results)))
}
示例#2
0
/**
 * \brief Sort the code-completion results in case-insensitive alphabetical
 * order.
 *
 * \param Results The set of results to sort.
 * \param NumResults The number of results in \p Results.
 */
func (ccr CodeCompleteResults) Sort() {
	C.clang_sortCodeCompletionResults(ccr.c.Results, ccr.c.NumResults)
}