2008-07-02 00:03:09 +00:00
|
|
|
//===--- AnalysisConsumer.cpp - ASTConsumer for running Analyses ----------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// "Meta" ASTConsumer for running different source analyses.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef DRIVER_ANALYSISCONSUMER_H
|
|
|
|
#define DRIVER_ANALYSISCONSUMER_H
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
|
|
|
|
enum Analyses {
|
2008-07-15 00:46:02 +00:00
|
|
|
#define ANALYSIS(NAME, CMDFLAG, DESC, SCOPE) NAME,
|
2008-07-14 23:41:13 +00:00
|
|
|
#include "Analyses.def"
|
|
|
|
NumAnalyses
|
2008-07-02 00:03:09 +00:00
|
|
|
};
|
2008-07-14 23:41:13 +00:00
|
|
|
|
2008-07-02 00:03:09 +00:00
|
|
|
ASTConsumer* CreateAnalysisConsumer(Analyses* Beg, Analyses* End,
|
|
|
|
Diagnostic &diags, Preprocessor* pp,
|
|
|
|
PreprocessorFactory* ppf,
|
|
|
|
const LangOptions& lopts,
|
|
|
|
const std::string& fname,
|
|
|
|
const std::string& htmldir,
|
2008-08-27 22:31:43 +00:00
|
|
|
bool VisualizeGraphViz,
|
|
|
|
bool VisualizeUbi,
|
|
|
|
bool VizTrimGraph,
|
|
|
|
bool AnalyzeAll);
|
2008-07-02 00:03:09 +00:00
|
|
|
} // end clang namespace
|
|
|
|
|
|
|
|
#endif
|