From 2ef5f3c1c5b09b135eec7ff1986feb829652e0ed Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 14 Feb 2011 18:13:11 +0000 Subject: [analyzer] Move include/clang/StaticAnalyzer/AnalysisConsumer.h -> lib/StaticAnalyzer/Frontend/AnalysisConsumer.h since FrontendActions.cpp is the only user. llvm-svn: 125501 --- .../lib/StaticAnalyzer/Frontend/AnalysisConsumer.h | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.h (limited to 'clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.h') diff --git a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.h b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.h new file mode 100644 index 00000000000..86f6c727a4b --- /dev/null +++ b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.h @@ -0,0 +1,39 @@ +//===--- AnalysisConsumer.h - Front-end Analysis Engine Hooks ---*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header contains the functions necessary for a front-end to run various +// analyses. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CLANG_GR_ANALYSISCONSUMER_H +#define LLVM_CLANG_GR_ANALYSISCONSUMER_H + +#include + +namespace clang { + +class AnalyzerOptions; +class ASTConsumer; +class Preprocessor; + +namespace ento { + +/// CreateAnalysisConsumer - Creates an ASTConsumer to run various code +/// analysis passes. (The set of analyses run is controlled by command-line +/// options.) +ASTConsumer* CreateAnalysisConsumer(const Preprocessor &pp, + const std::string &output, + const AnalyzerOptions& Opts); + +} // end GR namespace + +} // end clang namespace + +#endif -- cgit v1.2.3