blob: b75220b62de381a34579608b52b183528f0d8703 [file] [log] [blame]
Daniel Dunbar9b414d32010-06-15 17:48:49 +00001//===--- 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 Kyrtzidis5a4f98f2010-12-22 18:53:20 +000015#ifndef LLVM_CLANG_GR_ANALYSISCONSUMER_H
16#define LLVM_CLANG_GR_ANALYSISCONSUMER_H
Daniel Dunbar9b414d32010-06-15 17:48:49 +000017
Jordy Rose08b86532011-08-16 21:24:21 +000018#include "clang/Basic/LLVM.h"
Ted Kremenek45796b12012-08-31 04:36:05 +000019#include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
Daniel Dunbar9b414d32010-06-15 17:48:49 +000020#include <string>
21
22namespace clang {
23
Daniel Dunbar9b414d32010-06-15 17:48:49 +000024class ASTConsumer;
25class Preprocessor;
David Blaikied6471f72011-09-25 23:23:43 +000026class DiagnosticsEngine;
Daniel Dunbar9b414d32010-06-15 17:48:49 +000027
Ted Kremenek9ef65372010-12-23 07:20:52 +000028namespace ento {
Argyrios Kyrtzidis43dee222011-02-14 18:13:31 +000029class CheckerManager;
Argyrios Kyrtzidis5a4f98f2010-12-22 18:53:20 +000030
Daniel Dunbar9b414d32010-06-15 17:48:49 +000031/// CreateAnalysisConsumer - Creates an ASTConsumer to run various code
32/// analysis passes. (The set of analyses run is controlled by command-line
33/// options.)
34ASTConsumer* CreateAnalysisConsumer(const Preprocessor &pp,
35 const std::string &output,
Ted Kremenek45796b12012-08-31 04:36:05 +000036 AnalyzerOptionsRef opts,
Jordy Rose08b86532011-08-16 21:24:21 +000037 ArrayRef<std::string> plugins);
Daniel Dunbar9b414d32010-06-15 17:48:49 +000038
Argyrios Kyrtzidis5a4f98f2010-12-22 18:53:20 +000039} // end GR namespace
40
41} // end clang namespace
Daniel Dunbar9b414d32010-06-15 17:48:49 +000042
43#endif