mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
d461d7ad7e
llvm-svn: 55442
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
//===--- 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 {
|
|
#define ANALYSIS(NAME, CMDFLAG, DESC, SCOPE) NAME,
|
|
#include "Analyses.def"
|
|
NumAnalyses
|
|
};
|
|
|
|
ASTConsumer* CreateAnalysisConsumer(Analyses* Beg, Analyses* End,
|
|
Diagnostic &diags, Preprocessor* pp,
|
|
PreprocessorFactory* ppf,
|
|
const LangOptions& lopts,
|
|
const std::string& fname,
|
|
const std::string& htmldir,
|
|
bool VisualizeGraphViz,
|
|
bool VisualizeUbi,
|
|
bool VizTrimGraph,
|
|
bool AnalyzeAll);
|
|
} // end clang namespace
|
|
|
|
#endif
|