<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 21, 2014 at 9:31 PM, Matthew Woehlke <span dir="ltr"><<a href="mailto:mw_triad@users.sourceforge.net" target="_blank">mw_triad@users.sourceforge.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2014-05-21 15:24, Nicolas Desprès wrote:<br>
<div class="">> On Wed, May 21, 2014 at 8:06 PM, Matthew Woehlke wrote:<br>
>> On 2014-05-15 08:36, Ben Boeckel wrote:<br>
</div><div class="">>>> This will also likely need a policy since there's no guarantee that<br>
>>> #line "directives" don't exist in already existing code as comments.<br>
>><br>
>> Maybe we should not introduce pragma-like constructs that are<br>
>> indistinguishable from comments? :-)<br>
>><br>
>> TBH I'd be a little ambivalent about such a feature. A line pragma<br>
>> itself isn't too bad, but opening the door for other types of pragmas<br>
>> makes me a little more nervous :-).<br>
><br>
> If it is possible I would rather prefer a cmake macro too.<br>
<br>
</div>I don't see why not... in fact it may be easier, since you won't have to<br>
fiddle with the parsing at all.<br></blockquote><div>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.</div>

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