#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"
namespace {
-AST_MATCHER(Stmt, isOMPStructuredBlock) { return Node.isOMPStructuredBlock(); }
-
const ast_matchers::internal::VariadicDynCastAllOfMatcher<
OMPExecutableDirective, OMPTargetDirective>
ompTargetDirective;
.bind("id");
}
-AST_MATCHER(OMPExecutableDirective, isStandaloneDirective) {
- return Node.isStandaloneDirective();
-}
-
StatementMatcher OMPStandaloneDirectiveMatcher() {
return stmt(ompExecutableDirective(isStandaloneDirective())).bind("id");
}