r356679 - [AST] OMPStructuredBlockTest: two matchers were promoted into ASTMatchers.h
Roman Lebedev via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 21 08:50:54 PDT 2019
Author: lebedevri
Date: Thu Mar 21 08:50:54 2019
New Revision: 356679
URL: http://llvm.org/viewvc/llvm-project?rev=356679&view=rev
Log:
[AST] OMPStructuredBlockTest: two matchers were promoted into ASTMatchers.h
Modified:
cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp
Modified: cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp?rev=356679&r1=356678&r2=356679&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp (original)
+++ cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp Thu Mar 21 08:50:54 2019
@@ -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 OMPInnermostStructuredB
.bind("id");
}
-AST_MATCHER(OMPExecutableDirective, isStandaloneDirective) {
- return Node.isStandaloneDirective();
-}
-
StatementMatcher OMPStandaloneDirectiveMatcher() {
return stmt(ompExecutableDirective(isStandaloneDirective())).bind("id");
}
More information about the cfe-commits
mailing list