[all-commits] [llvm/llvm-project] b2528f: [clang][deps] Stop using `ClangTool` for virtual f...
Diana via All-commits
all-commits at lists.llvm.org
Fri Sep 10 01:19:40 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b2528fc49035588b69cec2b4bfba87a0d3eb725d
https://github.com/llvm/llvm-project/commit/b2528fc49035588b69cec2b4bfba87a0d3eb725d
Author: Diana Picus <diana.picus at linaro.org>
Date: 2021-09-10 (Fri, 10 Sep 2021)
Changed paths:
M clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h
M clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
Log Message:
-----------
[clang][deps] Stop using `ClangTool` for virtual files
This patch changes how the dependency scanner creates the fake input file when scanning dependencies of a single module (introduced in D109485). The scanner now has its own `InMemoryFilesystem` which sits under the minimizing FS (when that's requested). This makes it possible to drop the duplicate work in `DependencyScanningActions::runInvocation` that sets up the main file ID. Besides that, this patch makes it possible to land D108979, where we drop `ClangTool` entirely.
Depends on D109485.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D109498
More information about the All-commits
mailing list