[cfe-dev] Driver support for AST features (UI Proposal)
daniel at zuster.org
Tue Sep 1 08:48:33 PDT 2009
On Tue, Sep 1, 2009 at 8:15 AM, Fariborz Jahanian<fjahanian at apple.com> wrote:
> On Aug 31, 2009, at 10:51 PM, Daniel Dunbar wrote:
>> 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.
>> a. clang will call clang with an explicit argument telling it to
> clang will call clang-cc ?
>> compile from .ast (-compile-ast) instead of -S.
>> b. The compile-ast action will skip passing preprocessing specific
>> options to clang (but still pass options used by the code generator).
> Shouldn't the option for back-end be stored in the AST node during -emit-ast
> phase? This helps, among other things with language specific issues, and
> for debug info. (if we chose to putout additional ASTs for such purpose).
> Also, the compiler rev number would be a plus to prevent nasty bugs.
Most of these options already are, the only ones that aren't are
things which only effect the backend (even options like -O2 change the
language since they set preprocessor defines).
And yes, I agree that we should make PCH's version detection a little
More information about the cfe-dev