1 //===--- AnalysisConsumer.h - Front-end Analysis Engine Hooks ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This header contains the functions necessary for a front-end to run various
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_GR_ANALYSISCONSUMER_H
16 #define LLVM_CLANG_GR_ANALYSISCONSUMER_H
18 #include "clang/AST/ASTConsumer.h"
19 #include "clang/Basic/LLVM.h"
20 #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
21 #include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
27 class DiagnosticsEngine;
32 class AnalysisASTConsumer : public ASTConsumer {
34 virtual void AddDiagnosticConsumer(PathDiagnosticConsumer *Consumer) = 0;
37 /// CreateAnalysisConsumer - Creates an ASTConsumer to run various code
38 /// analysis passes. (The set of analyses run is controlled by command-line
40 AnalysisASTConsumer *CreateAnalysisConsumer(const Preprocessor &pp,
41 const std::string &output,
42 AnalyzerOptionsRef opts,
43 ArrayRef<std::string> plugins);
47 } // end clang namespace