On Wed, May 21, 2014 at 9:31 PM, Matthew Woehlke <
mw_tr...@users.sourceforge.net> wrote:

> On 2014-05-21 15:24, Nicolas Desprès wrote:
> > On Wed, May 21, 2014 at 8:06 PM, Matthew Woehlke wrote:
> >> On 2014-05-15 08:36, Ben Boeckel wrote:
> >>> This will also likely need a policy since there's no guarantee that
> >>> #line "directives" don't exist in already existing code as comments.
> >>
> >> Maybe we should not introduce pragma-like constructs that are
> >> indistinguishable from comments? :-)
> >>
> >> TBH I'd be a little ambivalent about such a feature. A line pragma
> >> itself isn't too bad, but opening the door for other types of pragmas
> >> makes me a little more nervous :-).
> >
> > If it is possible I would rather prefer a cmake macro too.
>
> I don't see why not... in fact it may be easier, since you won't have to
> fiddle with the parsing at all.
>
Maybe because at the time the AST node is created the file location is
frozen. Locations are controlled by the lexer so do comments. I am not
exactly sure because I have not written a parser since a while. CMake's
folk would confirm or not.

-- 
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