1 //===--- FrontendActions.cpp ----------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
11 #include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"
12 #include "clang/StaticAnalyzer/Frontend/ModelConsumer.h"
13 using namespace clang;
16 std::unique_ptr<ASTConsumer>
17 AnalysisAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
18 return CreateAnalysisConsumer(CI);
21 ParseModelFileAction::ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies)
24 std::unique_ptr<ASTConsumer>
25 ParseModelFileAction::CreateASTConsumer(CompilerInstance &CI,
27 return llvm::make_unique<ModelConsumer>(Bodies);