[AST] OMPStructuredBlockTest: two matchers were promoted into ASTMatchers.h
llvm-svn: 356679
This commit is contained in:
parent
f3486db1f7
commit
7028cedafe
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue