summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
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
commit49f67ce4b3ec401bbc3591dd7b4fd443fbced874 (patch)
treed454c353c709bdee830f80badae89c3409f3822d /clang/lib/Sema/SemaCodeComplete.cpp
parentddeeb1022f21b9a9fd5ed8a0daa9718e9a768216 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud