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 15#ifndef LLVM_CLANG_GR_ANALYSISCONSUMER_H 16#define LLVM_CLANG_GR_ANALYSISCONSUMER_H 17 18#include "clang/Basic/LLVM.h" 19#include <string> 20 21namespace clang { 22 23class AnalyzerOptions; 24class ASTConsumer; 25class Preprocessor; 26class DiagnosticsEngine; 27 28namespace ento { 29class CheckerManager; 30 31/// 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, 36 const AnalyzerOptions& opts, 37 ArrayRef<std::string> plugins); 38 39} // end GR namespace 40 41} // end clang namespace 42 43#endif 44