Path: blob/main/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp
35266 views
//===--- FrontendActions.cpp ----------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"9#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"10#include "clang/StaticAnalyzer/Frontend/ModelConsumer.h"11using namespace clang;12using namespace ento;1314std::unique_ptr<ASTConsumer>15AnalysisAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {16return CreateAnalysisConsumer(CI);17}1819ParseModelFileAction::ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies)20: Bodies(Bodies) {}2122std::unique_ptr<ASTConsumer>23ParseModelFileAction::CreateASTConsumer(CompilerInstance &CI,24StringRef InFile) {25return std::make_unique<ModelConsumer>(Bodies);26}272829