blob: 487706b67591bbd8b26b71a1bb434dc2127b4b7d [file] [log] [blame]
Ted Kremenekf4381fd2008-07-02 00:03:09 +00001//===--- AnalysisConsumer.cpp - ASTConsumer for running Analyses ----------===//
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// "Meta" ASTConsumer for running different source analyses.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef DRIVER_ANALYSISCONSUMER_H
15#define DRIVER_ANALYSISCONSUMER_H
16
17namespace clang {
18
19enum Analyses {
20 WarnDeadStores,
Ted Kremenekb35a74a2008-07-02 00:44:58 +000021 WarnUninitVals,
Ted Kremenekbc46f342008-07-02 16:35:50 +000022 CheckerCFRef,
23 CheckerSimple
Ted Kremenekf4381fd2008-07-02 00:03:09 +000024};
25
26ASTConsumer* CreateAnalysisConsumer(Analyses* Beg, Analyses* End,
27 Diagnostic &diags, Preprocessor* pp,
28 PreprocessorFactory* ppf,
29 const LangOptions& lopts,
30 const std::string& fname,
31 const std::string& htmldir,
32 bool visualize, bool trim,
33 bool analyzeAll);
34} // end clang namespace
35
36#endif