From: Roman Lebedev Date: Thu, 21 Mar 2019 15:50:54 +0000 (+0000) Subject: [AST] OMPStructuredBlockTest: two matchers were promoted into ASTMatchers.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6d6adc5699edc736c164d46847e894a3f6695b3;p=clang [AST] OMPStructuredBlockTest: two matchers were promoted into ASTMatchers.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356679 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/AST/OMPStructuredBlockTest.cpp b/unittests/AST/OMPStructuredBlockTest.cpp index 7b2028b07c..623bed388c 100644 --- a/unittests/AST/OMPStructuredBlockTest.cpp +++ b/unittests/AST/OMPStructuredBlockTest.cpp @@ -14,6 +14,7 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/StmtOpenMP.h" #include "clang/ASTMatchers/ASTMatchFinder.h" +#include "clang/ASTMatchers/ASTMatchers.h" #include "clang/Tooling/Tooling.h" #include "llvm/ADT/SmallString.h" #include "gmock/gmock.h" @@ -25,8 +26,6 @@ using namespace tooling; namespace { -AST_MATCHER(Stmt, isOMPStructuredBlock) { return Node.isOMPStructuredBlock(); } - const ast_matchers::internal::VariadicDynCastAllOfMatcher< OMPExecutableDirective, OMPTargetDirective> ompTargetDirective; @@ -37,10 +36,6 @@ StatementMatcher OMPInnermostStructuredBlockMatcher() { .bind("id"); } -AST_MATCHER(OMPExecutableDirective, isStandaloneDirective) { - return Node.isStandaloneDirective(); -} - StatementMatcher OMPStandaloneDirectiveMatcher() { return stmt(ompExecutableDirective(isStandaloneDirective())).bind("id"); }