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

Daniel Dunbar daniel at zuster.org
Tue Sep 1 10:00:43 PDT 2009


On Tue, Sep 1, 2009 at 9:58 AM, Chris Lattner<clattner at apple.com> wrote:
> 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.

Right. Eventually I remembered that and then discarded that concern,
just wanted to mention it (mostly because it influences the choice of
suffix).

 - Daniel



More information about the cfe-dev mailing list