]> granicus.if.org Git - clang/commit
ASTMatchers: Add a matcher to detect whether a decl or stmt is inside a template...
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 3 Sep 2014 12:08:14 +0000 (12:08 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 3 Sep 2014 12:08:14 +0000 (12:08 +0000)
commit29342edf5e3237b9880d5ab891d9a030c0d64c8e
tree57738a5005a7e21fa7c3b0434be006e814daadb8
parentbf3d4200ebee7c479a76478a53de2ac9a2ec9a48
ASTMatchers: Add a matcher to detect whether a decl or stmt is inside a template instantiation.

This is hoisted from clang-tidy where it's used everywhere. The implementation
is not particularly efficient right now, but there is no easy fix for that.

Differential Revision: http://reviews.llvm.org/D5085

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217029 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
lib/ASTMatchers/Dynamic/Registry.cpp
unittests/ASTMatchers/ASTMatchersTest.cpp