]> granicus.if.org Git - clang/commit
[CodeComplete] Collect visited contexts when scope specifier is invalid.
authorEric Liu <ioeric@google.com>
Thu, 21 Feb 2019 11:22:58 +0000 (11:22 +0000)
committerEric Liu <ioeric@google.com>
Thu, 21 Feb 2019 11:22:58 +0000 (11:22 +0000)
commitfd5894c8584d9ec141dba7984315e439a59088f2
tree6e648234def85e5e6647289ce1dd3af0754a53b2
parenteae71f8d05ce550c4e2595c9b7082cc2c7882c58
[CodeComplete] Collect visited contexts when scope specifier is invalid.

Summary:
This will allow completion consumers to guess the specified scope by
putting together scopes in the context with the specified scope (e.g. when the
specified namespace is not imported yet).

Reviewers: ilya-biryukov

Subscribers: jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D58446

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354570 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
unittests/Sema/CodeCompleteTest.cpp