This is a recommit of d8a4ef0e68 with the nondeterminism fixed.
This adds experimental support for extracting a Clang module dependency graph
from a compilation database. The output format is experimental and will change.
It is currently a concatenation of JSON outputs for each compilation. Future
patches will change this to deduplicate modules between compilations.
Differential Revision: https://reviews.llvm.org/D69420
20 lines
804 B
C++
20 lines
804 B
C++
//===- DependencyScanningService.cpp - clang-scan-deps service ------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "clang/Tooling/DependencyScanning/DependencyScanningService.h"
|
|
|
|
using namespace clang;
|
|
using namespace tooling;
|
|
using namespace dependencies;
|
|
|
|
DependencyScanningService::DependencyScanningService(
|
|
ScanningMode Mode, ScanningOutputFormat Format, bool ReuseFileManager,
|
|
bool SkipExcludedPPRanges)
|
|
: Mode(Mode), Format(Format), ReuseFileManager(ReuseFileManager),
|
|
SkipExcludedPPRanges(SkipExcludedPPRanges) {}
|