<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 15, 2014 at 2:54 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 05/15/2014 08:36 AM, Ben Boeckel wrote:<br>
> If you'd like to try a patch, the relevant code is in<br>
> Source/cmExprParser*. Add a callback for #line nnn and update the<br>
> CurrentLine variable cmExprParserHelper.cxx. Don't forget tests :) .<br>
<br>
</div>cmExprParser is just for the math() command.  The language parser<br>
is "cmListFileLexer.in.l" and "cmListFileCache.cxx".  Tracking of<br>
the current source file may need to be moved.  The lexer would have<br>
to recognize #line syntax and update lexer->line.  Be careful to<br>
only do so in the main state and not inside a quoted or bracket<br>
argument.<br></blockquote><div><br></div><div>Thanks for the hints. I will be hard for me to work on it during the next weeks. It is just a plan I have. Do you think such a patch would be accepted after version 3 has been released?</div>

<div><br></div></div>-- <br>Nicolas Desprès<br>
</div></div>