clang  6.0.0svn
FrontendActions.cpp
Go to the documentation of this file.
1 //===--- FrontendActions.cpp ----------------------------------------------===//
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 
13 using namespace clang;
14 using namespace ento;
15 
16 std::unique_ptr<ASTConsumer>
18  return CreateAnalysisConsumer(CI);
19 }
20 
21 ParseModelFileAction::ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies)
22  : Bodies(Bodies) {}
23 
24 std::unique_ptr<ASTConsumer>
26  StringRef InFile) {
27  return llvm::make_unique<ModelConsumer>(Bodies);
28 }
std::unique_ptr< ASTConsumer > CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override
Create the AST consumer object for this action, if supported.
CompilerInstance - Helper class for managing a single instance of the Clang compiler.
Dataflow Directional Tag Classes.
This file implements clang::ento::ModelConsumer which is an ASTConsumer for model files...
std::unique_ptr< AnalysisASTConsumer > CreateAnalysisConsumer(CompilerInstance &CI)
CreateAnalysisConsumer - Creates an ASTConsumer to run various code analysis passes.
std::unique_ptr< ASTConsumer > CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override
Create the AST consumer object for this action, if supported.
ParseModelFileAction(llvm::StringMap< Stmt *> &Bodies)