Author: efriedma Date: Mon May 18 17:25:55 2009 New Revision: 72054 URL: http://llvm.org/viewvc/llvm-project?rev=72054&view=rev Log: Move AnalysisConsumer out of ASTConsumers.h in preparation for moving ASTConsumers.h to include/clang/Frontend.
Modified: cfe/trunk/tools/clang-cc/ASTConsumers.h cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp cfe/trunk/tools/clang-cc/clang-cc.h Modified: cfe/trunk/tools/clang-cc/ASTConsumers.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/ASTConsumers.h?rev=72054&r1=72053&r2=72054&view=diff ============================================================================== --- cfe/trunk/tools/clang-cc/ASTConsumers.h (original) +++ cfe/trunk/tools/clang-cc/ASTConsumers.h Mon May 18 17:25:55 2009 @@ -97,13 +97,6 @@ // tree for the given class and displays it with "dotty". ASTConsumer *CreateInheritanceViewer(const std::string& clsname); -// Analyzer: runs various code analysis passes. (The exact analyses -// run is controlled by command-line options.) -ASTConsumer* CreateAnalysisConsumer(Diagnostic &diags, Preprocessor *pp, - PreprocessorFactory *ppf, - const LangOptions &lopts, - const std::string &output); - } // end clang namespace #endif Modified: cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp?rev=72054&r1=72053&r2=72054&view=diff ============================================================================== --- cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp (original) +++ cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp Mon May 18 17:25:55 2009 @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "ASTConsumers.h" +#include "clang-cc.h" #include "clang/Frontend/PathDiagnosticClients.h" #include "clang/Frontend/ManagerRegistry.h" #include "clang/AST/ASTConsumer.h" Modified: cfe/trunk/tools/clang-cc/clang-cc.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.h?rev=72054&r1=72053&r2=72054&view=diff ============================================================================== --- cfe/trunk/tools/clang-cc/clang-cc.h (original) +++ cfe/trunk/tools/clang-cc/clang-cc.h Mon May 18 17:25:55 2009 @@ -25,6 +25,8 @@ class ASTConsumer; class IdentifierTable; class SourceManager; +class PreprocessorFactory; +class LangOptions; /// ProcessWarningOptions - Initialize the diagnostic client and process the /// warning options specified on the command line. @@ -55,6 +57,14 @@ /// CacheTokens - Cache tokens for use with PCH. void CacheTokens(Preprocessor& PP, const std::string& OutFile); +/// CreateAnalysisConsumer - Creates an ASTConsumer to run various code +/// analysis passes. (The set of analyses run is controlled by command-line +/// options.) +ASTConsumer* CreateAnalysisConsumer(Diagnostic &diags, Preprocessor *pp, + PreprocessorFactory *ppf, + const LangOptions &lopts, + const std::string &output); + } // end namespace clang #endif _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits