Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 1 | //===--- AnalysisConsumer.h - Front-end Analysis Engine Hooks ---*- C++ -*-===// |
| 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 | // This header contains the functions necessary for a front-end to run various |
| 11 | // analyses. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Argyrios Kyrtzidis | 5a4f98f | 2010-12-22 18:53:20 +0000 | [diff] [blame] | 15 | #ifndef LLVM_CLANG_GR_ANALYSISCONSUMER_H |
| 16 | #define LLVM_CLANG_GR_ANALYSISCONSUMER_H |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 17 | |
Jordy Rose | 08b8653 | 2011-08-16 21:24:21 +0000 | [diff] [blame] | 18 | #include "clang/Basic/LLVM.h" |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 19 | #include <string> |
| 20 | |
| 21 | namespace clang { |
| 22 | |
| 23 | class AnalyzerOptions; |
| 24 | class ASTConsumer; |
| 25 | class Preprocessor; |
David Blaikie | d6471f7 | 2011-09-25 23:23:43 +0000 | [diff] [blame^] | 26 | class DiagnosticsEngine; |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 27 | |
Ted Kremenek | 9ef6537 | 2010-12-23 07:20:52 +0000 | [diff] [blame] | 28 | namespace ento { |
Argyrios Kyrtzidis | 43dee22 | 2011-02-14 18:13:31 +0000 | [diff] [blame] | 29 | class CheckerManager; |
Argyrios Kyrtzidis | 5a4f98f | 2010-12-22 18:53:20 +0000 | [diff] [blame] | 30 | |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 31 | /// CreateAnalysisConsumer - Creates an ASTConsumer to run various code |
| 32 | /// analysis passes. (The set of analyses run is controlled by command-line |
| 33 | /// options.) |
| 34 | ASTConsumer* CreateAnalysisConsumer(const Preprocessor &pp, |
| 35 | const std::string &output, |
Jordy Rose | 08b8653 | 2011-08-16 21:24:21 +0000 | [diff] [blame] | 36 | const AnalyzerOptions& opts, |
| 37 | ArrayRef<std::string> plugins); |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 38 | |
Argyrios Kyrtzidis | 5a4f98f | 2010-12-22 18:53:20 +0000 | [diff] [blame] | 39 | } // end GR namespace |
| 40 | |
| 41 | } // end clang namespace |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 42 | |
| 43 | #endif |