summaryrefslogtreecommitdiffstats
path: root/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-07 20:38:15 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-07 20:38:15 +0000
commit57dd9bd5cc55ede780236ddd62af0a46f9d37734 (patch)
tree8c489dd0bd9eda2db91f1d839d59a889a8953756 /clang/unittests/ASTMatchers/ASTMatchersTest.cpp
parent1a666e0f692b94c627a25e6ea55429e3042a9a32 (diff)
downloadbcm5719-llvm-57dd9bd5cc55ede780236ddd62af0a46f9d37734.tar.gz
bcm5719-llvm-57dd9bd5cc55ede780236ddd62af0a46f9d37734.zip
ASTMatchers: Make AST_POLYMORPHIC_SUPPORTED_TYPES a variadic macro
C++11 finally allows us to use this C99 feature. llvm-svn: 231575
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.cpp')
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersTest.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index dab22e33cda..d43e3f339b2 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -2541,10 +2541,9 @@ TEST(AstMatcherPMacro, Works) {
HasClassB, new VerifyIdIsBoundTo<Decl>("b")));
}
-AST_POLYMORPHIC_MATCHER_P(
- polymorphicHas,
- AST_POLYMORPHIC_SUPPORTED_TYPES_2(Decl, Stmt),
- internal::Matcher<Decl>, AMatcher) {
+AST_POLYMORPHIC_MATCHER_P(polymorphicHas,
+ AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt),
+ internal::Matcher<Decl>, AMatcher) {
return Finder->matchesChildOf(
Node, AMatcher, Builder,
ASTMatchFinder::TK_IgnoreImplicitCastsAndParentheses,
OpenPOWER on IntegriCloud