Ted Kremenek | f4381fd | 2008-07-02 00:03:09 +0000 | [diff] [blame] | 1 | //===--- AnalysisConsumer.cpp - ASTConsumer for running Analyses ----------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // "Meta" ASTConsumer for running different source analyses. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef DRIVER_ANALYSISCONSUMER_H |
| 15 | #define DRIVER_ANALYSISCONSUMER_H |
| 16 | |
| 17 | namespace clang { |
| 18 | |
| 19 | enum Analyses { |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 20 | #define ANALYSIS(NAME, CMDFLAG, DESC, SCOPE) NAME, |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 21 | #include "Analyses.def" |
| 22 | NumAnalyses |
Ted Kremenek | f4381fd | 2008-07-02 00:03:09 +0000 | [diff] [blame] | 23 | }; |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 24 | |
Ted Kremenek | f4381fd | 2008-07-02 00:03:09 +0000 | [diff] [blame] | 25 | ASTConsumer* CreateAnalysisConsumer(Analyses* Beg, Analyses* End, |
| 26 | Diagnostic &diags, Preprocessor* pp, |
| 27 | PreprocessorFactory* ppf, |
| 28 | const LangOptions& lopts, |
| 29 | const std::string& fname, |
| 30 | const std::string& htmldir, |
Ted Kremenek | f8ce699 | 2008-08-27 22:31:43 +0000 | [diff] [blame] | 31 | bool VisualizeGraphViz, |
| 32 | bool VisualizeUbi, |
| 33 | bool VizTrimGraph, |
| 34 | bool AnalyzeAll); |
Ted Kremenek | f4381fd | 2008-07-02 00:03:09 +0000 | [diff] [blame] | 35 | } // end clang namespace |
| 36 | |
| 37 | #endif |