Any news on std::experimental::source_location (and/or _builtin_FILE etc.)

Hi all,

I recently tried to implement certain error handling boilerplate without the use of macros. source_location as described in 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 ( and that seemed to be working on source_location and the builtins.
Are there any plans for integrating either the builtins or full fledged source_location?



Yes, there are plans to do both.

I haven’t been able to update/finish the patches due to school work, but I plan to
land both the builtins and source_location over the Christmas break.