[cfe-dev] Moving ASTConsumers.h to include/clang/Frontend ?

Eli Friedman eli.friedman at gmail.com
Mon May 18 00:07:46 PDT 2009


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?

Note that the following changes would be required first:
1. Move the declaration for CreateAnalysisConsumer to clang-cc.h;
AnalysisConsumer.cpp has a bunch of command-line options, so it can't
go into lib/ in its current form.
2. Move the "Wno-rewrite-macros" option for the ObjC rewriter to clang-cc.cpp.

-Eli




More information about the cfe-dev mailing list