2010-07-13 13:21:42 -04:00
|
|
|
//===--- FrontendActions.cpp ----------------------------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2011-02-20 08:06:31 -05:00
|
|
|
#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
|
2014-11-24 04:15:30 -05:00
|
|
|
#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"
|
2015-01-18 11:23:48 -05:00
|
|
|
#include "clang/StaticAnalyzer/Frontend/ModelConsumer.h"
|
2010-07-13 13:21:42 -04:00
|
|
|
using namespace clang;
|
2011-02-20 08:06:31 -05:00
|
|
|
using namespace ento;
|
2010-07-13 13:21:42 -04:00
|
|
|
|
2015-01-18 11:23:48 -05:00
|
|
|
std::unique_ptr<ASTConsumer>
|
|
|
|
|
AnalysisAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
|
|
|
|
|
return CreateAnalysisConsumer(CI);
|
2010-07-13 13:21:42 -04:00
|
|
|
}
|
|
|
|
|
|
2015-01-18 11:23:48 -05:00
|
|
|
ParseModelFileAction::ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies)
|
|
|
|
|
: Bodies(Bodies) {}
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<ASTConsumer>
|
|
|
|
|
ParseModelFileAction::CreateASTConsumer(CompilerInstance &CI,
|
|
|
|
|
StringRef InFile) {
|
|
|
|
|
return llvm::make_unique<ModelConsumer>(Bodies);
|
|
|
|
|
}
|