summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-25 22:15:42 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-25 22:15:42 +0000
commitebb7c8489192626159d59f64307d515de65c4765 (patch)
treeaff812ee70012c3dfa2d3dd072a4500a12a6fff4 /clang/lib/Frontend/ASTUnit.cpp
parent8302463dc6e23f6cb8f242740e12e4d41ee43586 (diff)
downloadbcm5719-llvm-ebb7c8489192626159d59f64307d515de65c4765.tar.gz
bcm5719-llvm-ebb7c8489192626159d59f64307d515de65c4765.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. llvm-svn: 112095
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
-rw-r--r--clang/lib/Frontend/ASTUnit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp
index 452803acd29..874fd012b3c 100644
--- a/clang/lib/Frontend/ASTUnit.cpp
+++ b/clang/lib/Frontend/ASTUnit.cpp
@@ -1678,9 +1678,7 @@ void AugmentedCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &S,
Next.ProcessCodeCompleteResults(S, Context, Results, NumResults);
return;
}
-
- // Sort the completion results before passing them on to the actual consumer.
- std::stable_sort(AllResults.begin(), AllResults.end());
+
Next.ProcessCodeCompleteResults(S, Context, AllResults.data(),
AllResults.size());
OpenPOWER on IntegriCloud