]> granicus.if.org Git - clang/commit
For code completion in C++ member access expressions and tag names,
authorDouglas Gregor <dgregor@apple.com>
Fri, 18 Sep 2009 17:42:29 +0000 (17:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 18 Sep 2009 17:42:29 +0000 (17:42 +0000)
commit33224e61bfca370850abae89bbd415a4dabe07fa
tree2ecd0a1991f2e7494615d765d8f8e625fa7d8a7d
parent9436ed50b0923368d5ae7a97f1b67c56b6837430
For code completion in C++ member access expressions and tag names,
look into the current scope for anything that could start a
nested-names-specifier. These results are ranked worse than any of the
results actually found in the lexical scope.

Perform a little more pruning of the result set, eliminating
constructors, __va_list_tag, and any duplication of declarations in
the result set. For the latter, implemented
NamespaceDecl::getCanonicalDecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82231 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/Sema/CodeCompleteConsumer.h
lib/Sema/CodeCompleteConsumer.cpp
test/CodeCompletion/tag.cpp [new file with mode: 0644]