]> granicus.if.org Git - clang/commit
[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)
commitbdb4755681125844874494802f912ddbd9c956cc
treee38b2ac823929248acda9f8ba56cd8123e9f34c4
parentab78fd585df911307fad6d5b89b0b22cb14e9001
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325678 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp