Hi,<br><div class="gmail_quote"><br>I'm writing a code re-writer involving the use of pragmas. I have my PragmaHandler and every other bit working fine, but when I try to replace the pragma statement it only replaces the parts after the #pragma keyword. HandlePragma provides a SourceLocation to the token after #pragma, but not the keyword itself. Is there any way, preferably from within the PragmaHandler, that I can get a SourceLocation to the #pragma keyword?<br>
<br>Example:<br><br>Input: #pragma omp parallel for<br>Desired output: { char * specLoop; }<br>Actual output: #pragma { char * specLoop; }<br><br>Cheers,<br><br>Dan<span class="HOEnZb"><font color="#888888"><br clear="all">
</font></span><br></div>-- <br>--------<br>Daniel Powell<br><a href="mailto:divot.powell@googlemail.com" target="_blank">divot.powell@googlemail.com</a><br><a href="http://tinyurl.com/powelld" target="_blank">http://tinyurl.com/powelld</a><br>
<br>The University of Edinburgh<br>Institute for Computer Systems Architecture<br>