diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-08-26 02:23:45 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-08-26 02:23:45 +0000 |
| commit | 78ecc499eb0ac8053cb200f6939640ff0d0e72a0 (patch) | |
| tree | c47a050a3ed25157a0f9e950ca61032d92c81126 /clang/include | |
| parent | b45a1e735ae5d4438d10aea6ff1caee9f105b3b4 (diff) | |
| download | bcm5719-llvm-78ecc499eb0ac8053cb200f6939640ff0d0e72a0.tar.gz bcm5719-llvm-78ecc499eb0ac8053cb200f6939640ff0d0e72a0.zip | |
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.
llvm-svn: 112149
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang-c/Index.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 9b80d9f3a55..9abaa516a07 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/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 |

