aboutsummaryrefslogtreecommitdiff
path: root/include/clang-c/Index.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-26 13:48:20 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-26 13:48:20 +0000
commit1e5e6684b0f27701e6f7c65f8c6a32a10cbcc3ed (patch)
treee6ffa9f08a0b7e237c01aef2000cfbbd1f4404fa /include/clang-c/Index.h
parentf29815affe5d28c499d21c0be9bb078c52025ae6 (diff)
Move the sorting of code-completion results out of the main path and
into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. Provide a libclang function that sorts the results. 3rd try. How embarrassing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c/Index.h')
-rw-r--r--include/clang-c/Index.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 9b80d9f3a5..9abaa516a0 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -2350,6 +2350,17 @@ CXCodeCompleteResults *clang_codeCompleteAt(CXTranslationUnit TU,
unsigned options);
/**
+ * \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.
+ */
+CINDEX_LINKAGE
+void clang_sortCodeCompletionResults(CXCompletionResult *Results,
+ unsigned NumResults);
+
+/**
* \brief Free the given set of code-completion results.
*/
CINDEX_LINKAGE