On Sun, 12 Oct 2025, Lewis Hyatt wrote: > > > One issue that came up is the treatment of command-line-defined macros. > > > From > > > the perspective of the generic line_map data structures, the command-line > > > location is not distinguishable from other locations; it's just an > > > ordinary > > > location created by the front ends with a fake file name by convention. > > > (At > > > the moment, it is always the string `<command-line>', subject to > > > translation.) Since libcpp needs to assign macros to that location, it > > > needs to know what location to use, so I added a new member > > > line_maps::cmdline_location for the front ends to set, similar to how > > > line_maps::builtin_location is handled.
Do I understand correctly that cmdline_location does not have to be set by front ends not doing PCH (in particular, Fortran, which uses libcpp)? If so, then the patch is OK in the absence of objections within the next week. -- Joseph S. Myers [email protected]
