[cfe-dev] matcher openmp directive

xiaohui chen xchen198812 at gmail.com
Mon Jan 5 19:39:02 PST 2015


Hi there:

i try to match an openmp directive using AST Matcher, but i can not make it.
for example:

{
#pragma omp parallel
{
.....
}
}
how to match this node?

this node should be a STMT in AST, i can see  this in RecursiveASTVisitor.h
:
DEF_TRAVERSE_STMT(OMPParallelDirective,
                  { TRY_TO(TraverseOMPExecutableDirective(S)); })

so how to narrow down the stmt() matcher to get this node?

Best
hui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150105/9f866b6f/attachment.html>


More information about the cfe-dev mailing list