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