[cfe-dev] Moving ASTConsumers.h to include/clang/Frontend ?
Daniel Dunbar
daniel at zuster.org
Mon May 18 01:16:03 PDT 2009
Hi Eli,
On Mon, May 18, 2009 at 12:07 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
> Per subject, the suggestion is to move ASTConsumers.h to
> include/clang/Frontend, and the related .cpp files into lib/Frontend.
> It seems like a good idea because it's a set of completely
> self-contained utilities, and it potentially allows programs other
> than clang-cc to use these utilities. (CreateBackendConsumer in
> particular strikes me as useful, and the others could be nice to
> have.) Does anyone disagree?
Not at all, this is definitely where we should be going in my opinion.
I'd like to see your patch to move the file names to streams go in
first, with the idea that the Frontend library shouldn't be making
policy decisions (like how to replace a suffix).
In the long term, I would like to see clang-cc be little more than a
wrapper around code in Frontend which just translates the command line
options into API calls / data structures. This should make it easier
to build new clients, and to have the driver integrate the compiler
directly.
- Daniel
More information about the cfe-dev
mailing list