[cfe-dev] PATCH: Cleanup function redeclaration representations
Chris Lattner
clattner at apple.com
Sun May 4 13:58:52 PDT 2008
On May 4, 2008, at 11:53 AM, Mike Stump wrote:
> On May 4, 2008, at 11:42 AM, Doug Gregor wrote:
>> My gut tells me that most clients that are doing any kind of
>> analysis will care only about the "aggregate" version of the decl.
>
> Yeah, I wonder if the memory saving of having the client declare up
> front what they want would outweigh the downside of having the code
> only collects what the client is interested in. Having two decls
> when a client only really needs one would be unfortunate. If
> downside isn't a big deal, having the client essentially say, I only
> need the merged decls would be best.
This doesn't work if you want clang to stream out ASTs to disk as a
side effect of compilation. Because you don't know the ultimate
client of those ASTs, you end up having to save everything anyway.
-Chris
More information about the cfe-dev
mailing list