diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-08-26 13:48:20 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-08-26 13:48:20 +0000 |
| commit | 49f67ce4b3ec401bbc3591dd7b4fd443fbced874 (patch) | |
| tree | d454c353c709bdee830f80badae89c3409f3822d /clang/include/clang-c | |
| parent | ddeeb1022f21b9a9fd5ed8a0daa9718e9a768216 (diff) | |
| download | bcm5719-llvm-49f67ce4b3ec401bbc3591dd7b4fd443fbced874.tar.gz bcm5719-llvm-49f67ce4b3ec401bbc3591dd7b4fd443fbced874.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.
3rd try. How embarrassing.
llvm-svn: 112180
Diffstat (limited to 'clang/include/clang-c')
| -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 |

