]> granicus.if.org Git - clang/commitdiff
Move AnalysisConsumer out of ASTConsumers.h in preparation for moving
authorEli Friedman <eli.friedman@gmail.com>
Mon, 18 May 2009 22:25:55 +0000 (22:25 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 18 May 2009 22:25:55 +0000 (22:25 +0000)
ASTConsumers.h to include/clang/Frontend.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72054 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-cc/ASTConsumers.h
tools/clang-cc/AnalysisConsumer.cpp
tools/clang-cc/clang-cc.h

index bb31e5c1588c308d9048796399a531a61d42d345..36fc0b38d052aa9a694e8f287c976b8eac90c268 100644 (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
index 381b9d0ba2b80485f50a7dd2cc3f9a7d774ff9d2..dc69058c99e1bebf24540022471e0d5011e53342 100644 (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"
index eee310bd2fb7e8ca99adcfbd0b846541ce1de77d..d4ee39a4bab319d85436ba3ba9b60c71b4acabea 100644 (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