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 | 902141f | 2008-07-02 18:23:21 +0000 | [diff] [blame] | 20 | CFGDump, |
| 21 | CFGView, |
Ted Kremenek | f4381fd | 2008-07-02 00:03:09 +0000 | [diff] [blame] | 22 | WarnDeadStores, |
Ted Kremenek | b35a74a | 2008-07-02 00:44:58 +0000 | [diff] [blame] | 23 | WarnUninitVals, |
Ted Kremenek | 235e031 | 2008-07-02 18:11:29 +0000 | [diff] [blame] | 24 | DisplayLiveVariables, |
Ted Kremenek | bc46f34 | 2008-07-02 16:35:50 +0000 | [diff] [blame] | 25 | CheckerCFRef, |
Ted Kremenek | 0d8019e | 2008-07-11 22:40:47 +0000 | [diff] [blame] | 26 | CheckerSimple, |
| 27 | CheckObjCMethSigs |
Ted Kremenek | f4381fd | 2008-07-02 00:03:09 +0000 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | ASTConsumer* CreateAnalysisConsumer(Analyses* Beg, Analyses* End, |
| 31 | Diagnostic &diags, Preprocessor* pp, |
| 32 | PreprocessorFactory* ppf, |
| 33 | const LangOptions& lopts, |
| 34 | const std::string& fname, |
| 35 | const std::string& htmldir, |
| 36 | bool visualize, bool trim, |
| 37 | bool analyzeAll); |
| 38 | } // end clang namespace |
| 39 | |
| 40 | #endif |