[cfe-commits] r112968 - /cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
Douglas Gregor
dgregor at apple.com
Fri Sep 3 09:23:44 PDT 2010
Author: dgregor
Date: Fri Sep 3 11:23:44 2010
New Revision: 112968
URL: http://llvm.org/viewvc/llvm-project?rev=112968&view=rev
Log:
Simplify code-completion result sorting a bit
Modified:
cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
Modified: cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp?rev=112968&r1=112967&r2=112968&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp (original)
+++ cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp Fri Sep 3 11:23:44 2010
@@ -666,14 +666,6 @@
cmp = XStr.compare(YStr);
if (cmp)
return cmp < 0;
-
- // Non-hidden names precede hidden names.
- if (X.Hidden != Y.Hidden)
- return !X.Hidden;
-
- // Non-nested-name-specifiers precede nested-name-specifiers.
- if (X.StartsNestedNameSpecifier != Y.StartsNestedNameSpecifier)
- return !X.StartsNestedNameSpecifier;
return false;
}
More information about the cfe-commits
mailing list