[cfe-dev] Matching 'OMPThreadPrivateDecl'( like #pragma omp threadprivate(var))

Deepak Rajendrakumaran deepak3 at vt.edu
Tue Feb 24 18:00:32 PST 2015


This might sound silly. But I have been trying to
match OMPThreadPrivateDecl' nodes using ASTMatcher. But I have been running
into deadends.

What I am doing now is using ASTMatcher to match 'Decl' nodes and check if
its a 'OMPThreadPrivateDecl'  by using a dyn_cast. But this does not work.

Alternatively I tried with isa<OMPThreadPrivateDecl>(*D) (which kind of
does the same thing)

 Can anyone point out how I can access the 'OMPThreadPrivateDecl nodes
using ASTMAtcher or what I am doing wrong?

-Deepak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150224/2eca789e/attachment.html>


More information about the cfe-dev mailing list