34 const auto *func = llvm::dyn_cast<FunctionDecl>(
D);
35 if (func && func->hasBody()) {
36 Bodies.insert(std::make_pair(func->getName(), func->getBody()));
This file implements clang::ento::ModelConsumer which is an ASTConsumer for model files.
Decl - This represents one declaration (or definition), e.g.
bool HandleTopLevelDecl(DeclGroupRef D) override
HandleTopLevelDecl - Handle the specified top-level declaration.
ModelConsumer(llvm::StringMap< Stmt * > &Bodies)
The JSON file list parser is used to communicate input to InstallAPI.