[ASTMatchers] isTemplateInstantiation: also match explicit instantiation declaration.
authorEric Liu <ioeric@google.com>
Wed, 21 Feb 2018 13:51:27 +0000 (13:51 +0000)
committerEric Liu <ioeric@google.com>
Wed, 21 Feb 2018 13:51:27 +0000 (13:51 +0000)
commit500e126155299db89682b74b7ad434c06d6ee5db
tree0da2367827c9733b723408467508179acc5e92ee
parent770397f4cdcfbf2c0e0a9604a4d6065063197317
[ASTMatchers] isTemplateInstantiation: also match explicit instantiation declaration.

Summary:
Example:
template <typename T> class X {}; class A {};
// Explicit instantiation declaration.
extern template class X<A>;

Reviewers: bkramer

Subscribers: klimek, cfe-commits

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

llvm-svn: 325678
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp