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

steve naroff snaroff at apple.com
Tue Sep 1 08:27:26 PDT 2009


Hi Sebastian,

Another point/motivation for this change...

As I'm sure you've noticed, we are starting to use the AST's as a  
general repository (to support indexing, refactoring, etc.). That  
said, we'd like the freedom to extend the .ast format without  
effecting the PCH format (and vice-versa).

snaroff

On Sep 1, 2009, at 3:58 AM, Sebastian Redl wrote:

> Daniel Dunbar wrote:
>> Hi all,
>>
>> This is a UI design proposal for the clang driver for providing  
>> user /
>> tool access to clang AST based features.
>>
>> 1. Support '-emit-ast'; this will be an option like '-S' in that it
>> stops compilation at the AST production phase, and will generate  
>> files
>> with a '.ast' suffix.
>>
>> 2. Recognize '.ast' files as source inputs which can be compiled.
>> Obviously this will start at the compilation phase, in the same way
>> that '.i' etc inputs bypass the preprocessing phase.
>> Comments?
>>
> Isn't this essentially the same as first emitting a PCH made from the
> entire source file, and then compiling an empty source file with a PCH
> include directive? In other words, don't we pretty much already  
> support
> this, albeit with a weird command syntax?
>
> Sebastian
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list