]> granicus.if.org Git - clang/commit
Fix templated type alias completion when using global completion cache
authorErik Verbruggen <erikjv@me.com>
Tue, 22 Aug 2017 10:25:48 +0000 (10:25 +0000)
committerErik Verbruggen <erikjv@me.com>
Tue, 22 Aug 2017 10:25:48 +0000 (10:25 +0000)
commita22fb7f2b228bf6340a192bac5defaecc4095e69
tree09fd113e90274f14485bcfaad2048e9f43c59994
parentce7e9f1524037ca01fa3c5d395dcde87beb25dba
Fix templated type alias completion when using global completion cache

When we have enabled cache for global completions we did not have
diagnostics for Bar and could not complete Ba as in provided code
example.

template <typename T>
struct Foo { T member; };

template<typename T> using Bar = Foo<T>;

int main() {
    Ba
}

Patch by Ivan Donchevskii!

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311442 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/ASTUnit.cpp
lib/Parse/ParseTemplate.cpp
test/Index/code-completion.cpp