On 05/15/2014 09:39 AM, Ben Boeckel wrote:
> On Thu, May 15, 2014 at 09:22:32 -0400, Brad King wrote:
>> I do not think the policy Ben mentioned will be needed.  The syntax
>>
>>  #line 1234 "/path/to/real/file"
>>
>> is fairly obscure and will be treated as a comment by older CMakes.
> 
> My thought was that such rogue existing comments might give really
> unhelpful backtraces, but I do agree that it's probably rare enough to
> ignore if wanted (similar to foreach (IN LISTS)) since it does seem
> beneficial enough.

Since the files are generated there is no reason the syntax has to
be short.  We could use:

 #cmake-generated-from-line 1234 "/path/to/real/file"

or:

 #cmake-source-line 1234 "/path/to/real/file"

-Brad

-- 

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