On Thu, May 15, 2014 at 2:54 PM, Brad King <brad.k...@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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to