]> granicus.if.org Git - clang/commit
Improve the sorting of code-completion results. We now always sort by
authorDouglas Gregor <dgregor@apple.com>
Wed, 13 Jan 2010 23:24:38 +0000 (23:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 13 Jan 2010 23:24:38 +0000 (23:24 +0000)
commitab0b4f1d66de54b4c3102b96d56964510361ba7d
tree60d687f855f2cf67dc371ebdade2b1315330ceff
parentcefd3ada97faf5a759dac4705900053d3aa071e9
Improve the sorting of code-completion results. We now always sort by
the "typed" text, first, then take into account
nested-name-specifiers, name hiding, etc. This means that the
resulting sort is actually alphabetical :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93370 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/enum-switch-case-qualified.cpp
test/CodeCompletion/enum-switch-case.c
test/CodeCompletion/enum-switch-case.cpp
test/CodeCompletion/macros.c
test/CodeCompletion/member-access.cpp
test/CodeCompletion/namespace-alias.cpp
test/CodeCompletion/namespace.cpp
test/CodeCompletion/nested-name-specifier.cpp
test/CodeCompletion/objc-message.m
test/CodeCompletion/operator.cpp
test/CodeCompletion/ordinary-name.c
test/CodeCompletion/ordinary-name.cpp
test/CodeCompletion/tag.c
test/CodeCompletion/tag.cpp
test/CodeCompletion/truncation.c
test/CodeCompletion/using-namespace.cpp
test/CodeCompletion/using.cpp
test/Index/code-completion.cpp
test/Index/complete-at-directives.m
test/Index/complete-at-exprstmt.m
test/Index/complete-objc-message.m