<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
</head><body><p>Hi,</p><p>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><p>...</p><p>#pragma mypragma on</p><p>for ( i = 0; i < 5; i++) { </p><p>...</p><p>}</p><p>#pragma mypragma off</p><p>..</p><p>Thanks</p><p>Marcel</p></body></html>