[cfe-dev] RecursiveASTVisitor and PragmaHandler
Compiler Dragon via cfe-dev
cfe-dev at lists.llvm.org
Thu Mar 23 03:28:42 PDT 2017
Hi,
I am currently writing a clang plugin, which does some transformation on for-loops. I have implemented a pragma handler, which is called back just fine. But now I am puzzled how to get the current state of the pragma in the RecursiveASTVisitor:
...
#pragma mypragma on
for ( i = 0; i < 5; i++) {
...
}
#pragma mypragma off
..
Thanks
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170323/e87d0571/attachment.html>
More information about the cfe-dev
mailing list