]> granicus.if.org Git - clang/commit
Fix templated type alias completion when using global completion cache
authorErik Verbruggen <erikjv@me.com>
Fri, 8 Sep 2017 09:31:13 +0000 (09:31 +0000)
committerErik Verbruggen <erikjv@me.com>
Fri, 8 Sep 2017 09:31:13 +0000 (09:31 +0000)
commit62fdde37170e9e52f53bd71e0eb5572558531103
tree2b0d9b26b198a071a61d237ed37641fc110ee6b9
parent870b07b53115ba4d8b12cda83982b0e69badca62
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
}

(This is the fixed version of r 311442, which was reverted in r311445.)

Patch by Ivan Donchevskii!

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

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