[cmake-developers] What about #line like feature in cmake language?

Nicolas Desprès nicolas.despres at gmail.com
Thu May 15 09:11:51 EDT 2014


On Thu, May 15, 2014 at 2:54 PM, Brad King <brad.king at kitware.com> wrote:

> On 05/15/2014 08:36 AM, Ben Boeckel wrote:
> > If you'd like to try a patch, the relevant code is in
> > Source/cmExprParser*. Add a callback for #line nnn and update the
> > CurrentLine variable cmExprParserHelper.cxx. Don't forget tests :) .
>
> cmExprParser is just for the math() command.  The language parser
> is "cmListFileLexer.in.l" and "cmListFileCache.cxx".  Tracking of
> the current source file may need to be moved.  The lexer would have
> to recognize #line syntax and update lexer->line.  Be careful to
> only do so in the main state and not inside a quoted or bracket
> argument.
>

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?

-- 
Nicolas Desprès
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140515/09bfa561/attachment-0002.html>


More information about the cmake-developers mailing list