<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 23, 2017, at 3:28 AM, Compiler Dragon via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

    <meta charset="UTF-8" class="">
<div class=""><p class="">Hi,</p><p class="">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</p></div></div></blockquote><div>The easiest would be to extend the loop-hint pragma.  See what I did for loop-distribution: <a href="https://reviews.llvm.org/D19403" class="">https://reviews.llvm.org/D19403</a>.</div><div><br class=""></div><div>Adam</div><blockquote type="cite" class=""><div class=""><div class=""><p class="">...</p><p class="">#pragma mypragma on</p><p class="">for ( i = 0; i < 5; i++) {          </p><p class="">...</p><p class="">}</p><p class="">#pragma mypragma off</p><p class="">..</p><p class="">Thanks</p><p class="">Marcel</p></div>
 _______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></body></html>