Coverage Report

Created: 2021-09-21 08:58

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
Line
Count
Source
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
9
#include "clang/Tooling/DependencyScanning/DependencyScanningService.h"
10
#include "llvm/Support/TargetSelect.h"
11
12
using namespace clang;
13
using namespace tooling;
14
using namespace dependencies;
15
16
DependencyScanningService::DependencyScanningService(
17
    ScanningMode Mode, ScanningOutputFormat Format, bool ReuseFileManager,
18
    bool SkipExcludedPPRanges)
19
    : Mode(Mode), Format(Format), ReuseFileManager(ReuseFileManager),
20
62
      SkipExcludedPPRanges(SkipExcludedPPRanges) {
21
  // Initialize targets for object file support.
22
62
  llvm::InitializeAllTargets();
23
62
  llvm::InitializeAllTargetMCs();
24
62
  llvm::InitializeAllAsmPrinters();
25
62
  llvm::InitializeAllAsmParsers();
26
62
}