Move AnalysisConsumer out of ASTConsumers.h in preparation for moving

ASTConsumers.h to include/clang/Frontend.

llvm-svn: 72054
This commit is contained in:
Eli Friedman 2009-05-18 22:25:55 +00:00
parent 94cf21e282
commit e5594d724b
3 changed files with 11 additions and 8 deletions

View File

@ -97,13 +97,6 @@ ASTConsumer *CreateBlockRewriter(const std::string &InFile,
// 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

View File

@ -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"

View File

@ -25,6 +25,8 @@ class Diagnostic;
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 @@ bool CreateDependencyFileGen(Preprocessor *PP, std::string &ErrStr);
/// 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