[diagnostics-branch] use precise locations in C front-end
Fri Dec 12 19:37:00 GMT 2008
On Fri, Dec 12, 2008 at 10:11:58AM -0800, Chris Lattner wrote:
> On Dec 12, 2008, at 9:35 AM, Aldy Hernandez wrote:
>> Hi folks.
>> The following patch is a top down approach for adding more precise
>> location information to the C front-end. We start with the parser,
>> push locations down as we build expressions and declarations.
>> Virtually all the C front-end is done, with the big exception of the
>> build_fold*/fold* infrastructure.
> Nice, this sounds like good progress. Out of curiosity, what do you
> plan to do with fold?
I haven't really thought about it, but something along the lines of the
routines taking a location and sticking that in the expression before
returning the new expression. But I'm sure it's more complicated than
that (as is usually the case with GCC ;-)).
More information about the Gcc-patches