[cfe-dev] Any news on std::experimental::source_location (and/or _builtin_FILE etc.)

Fabio Fracassi via cfe-dev cfe-dev at lists.llvm.org
Wed Dec 13 06:47:35 PST 2017

Hi all,

I recently tried to implement certain error handling boilerplate without 
the use of macros. source_location as described in 
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4519.pdf would 
be a perfect fit for this.

I was able to implement source_location in gcc via __builtin_FILE(), 
__builtin_LINE(), etc. clang does not support these yet. I found two 
review requests (https://reviews.llvm.org/D36389 and 
https://reviews.llvm.org/D37035) that seemed to be working on 
source_location and the builtins.
Are there any plans for integrating either the builtins or full fledged 



More information about the cfe-dev mailing list