clang 19.0.0git
DependencyScanningService.cpp
Go to the documentation of this file.
1//===- DependencyScanningService.cpp - clang-scan-deps service ------------===//
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-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "llvm/Support/TargetSelect.h"
11
12using namespace clang;
13using namespace tooling;
14using namespace dependencies;
15
18 ScanningOptimizations OptimizeArgs, bool EagerLoadModules)
19 : Mode(Mode), Format(Format), OptimizeArgs(OptimizeArgs),
20 EagerLoadModules(EagerLoadModules) {
21 // Initialize targets for object file support.
22 llvm::InitializeAllTargets();
23 llvm::InitializeAllTargetMCs();
24 llvm::InitializeAllAsmPrinters();
25 llvm::InitializeAllAsmParsers();
26}
DependencyScanningService(ScanningMode Mode, ScanningOutputFormat Format, ScanningOptimizations OptimizeArgs=ScanningOptimizations::Default, bool EagerLoadModules=false)
ScanningOutputFormat
The format that is output by the dependency scanner.
ScanningMode
The mode in which the dependency scanner will operate to find the dependencies.
The JSON file list parser is used to communicate input to InstallAPI.