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/lib/Sema/SemaCodeComplete.cpp | |
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/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index fed65365706..d61ddcdf758 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -2277,8 +2277,6 @@ static void HandleCodeCompleteResults(Sema *S, CodeCompletionContext Context, CodeCompletionResult *Results, unsigned NumResults) { - std::stable_sort(Results, Results + NumResults); - if (CodeCompleter) CodeCompleter->ProcessCodeCompleteResults(*S, Context, Results, NumResults); |