summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-26 02:23:45 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-26 02:23:45 +0000
commit78ecc499eb0ac8053cb200f6939640ff0d0e72a0 (patch)
treec47a050a3ed25157a0f9e950ca61032d92c81126 /clang/lib/Sema/SemaCodeComplete.cpp
parentb45a1e735ae5d4438d10aea6ff1caee9f105b3b4 (diff)
downloadbcm5719-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/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