[PATCH] D59463: [ASTMatchers][OpenMP] OpenMP Structured-block-related matchers

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 21 08:17:03 PDT 2019


lebedev.ri added inline comments.


================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:6444-6445
+              internal::Matcher<Stmt>, InnerMatcher) {
+  if (isStandaloneDirective().matches(Node, Finder, Builder))
+    return false; // Standalone directives have no structured blocks.
+  return InnerMatcher.matches(*Node.getStructuredBlock(), Finder, Builder);
----------------
aaron.ballman wrote:
> Rather than call the matcher (which is a heavy-handed solution), I'd prefer to just check `Node.isOMPStructuredBlock()` directly.
Hmm, k.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59463/new/

https://reviews.llvm.org/D59463





More information about the cfe-commits mailing list