]> granicus.if.org Git - clang/commit
Implement code completion for tags, e.g., code completion after "enum"
authorDouglas Gregor <dgregor@apple.com>
Fri, 18 Sep 2009 15:37:17 +0000 (15:37 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 18 Sep 2009 15:37:17 +0000 (15:37 +0000)
commit374929f7e88f6c7a96382b3eb4201b721c418372
tree8dd77ae50ba6f302b6ce1bf80c127095d7f3c35b
parent9df3fafe8b0a67969608151778e13ff3f21d70f1
Implement code completion for tags, e.g., code completion after "enum"
will provide the names of various enumerations currently
visible. Introduced filtering of code-completion results when we build
the result set, so that we can identify just the kinds of declarations
we want.

This implementation is incomplete for C++, since we don't consider
that the token after the tag keyword could start a
nested-name-specifier.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82222 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Action.h
include/clang/Sema/CodeCompleteConsumer.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/Sema.h
lib/Sema/SemaCXXScopeSpec.cpp
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/tag.c [new file with mode: 0644]