brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 04fbd0c Raw
28 lines · cpp
1//===--- FrontendActions.cpp ----------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"10#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"11#include "clang/StaticAnalyzer/Frontend/ModelConsumer.h"12using namespace clang;13using namespace ento;14 15std::unique_ptr<ASTConsumer>16AnalysisAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {17  return CreateAnalysisConsumer(CI);18}19 20ParseModelFileAction::ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies)21    : Bodies(Bodies) {}22 23std::unique_ptr<ASTConsumer>24ParseModelFileAction::CreateASTConsumer(CompilerInstance &CI,25                                        StringRef InFile) {26  return std::make_unique<ModelConsumer>(Bodies);27}28