Path: blob/main/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
35269 views
//===- DependencyScanningService.cpp - clang-scan-deps service ------------===//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/Tooling/DependencyScanning/DependencyScanningService.h"9#include "llvm/Support/TargetSelect.h"1011using namespace clang;12using namespace tooling;13using namespace dependencies;1415DependencyScanningService::DependencyScanningService(16ScanningMode Mode, ScanningOutputFormat Format,17ScanningOptimizations OptimizeArgs, bool EagerLoadModules)18: Mode(Mode), Format(Format), OptimizeArgs(OptimizeArgs),19EagerLoadModules(EagerLoadModules) {20// Initialize targets for object file support.21llvm::InitializeAllTargets();22llvm::InitializeAllTargetMCs();23llvm::InitializeAllAsmPrinters();24llvm::InitializeAllAsmParsers();25}262728