[cfe-dev] Driver support for AST features (UI Proposal)

Chris Lattner clattner at apple.com
Tue Sep 1 09:58:31 PDT 2009

FYI, I like the proposal, one comment:

On Sep 1, 2009, at 8:55 AM, Daniel Dunbar wrote:
>>> I'm not sure yet if this
>>> matters. If it did we would either (a) have to poke the .ast to  
>>> figure
>>> out its language, or (b) use -x with new options like c++-ast etc
>>> (like for preprocessed inputs) and optionally use suffixes like
>>> '.c-ast', '.cpp-ast', etc.
>> We should poke the AST file for this information.
> I agree, but its worth noting the downside of this is that the driver
> would have to link in substantially more code (or use a custom method
> to get the language, for example we could arrange the language to be
> part of the file header).

I'm not sure why the driver would care, but since we eventually want  
to link the driver and clang-cc together into one executable, I don't  
think that the driver sucking in more code is much of a concern.


More information about the cfe-dev mailing list