summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2019-08-29 22:56:38 +0000
committerAlex Lorenz <arphaman@gmail.com>2019-08-29 22:56:38 +0000
commit3944c9638e56af25717407c583aaeae8a01d7629 (patch)
treeae42a286d898d9ab1a74f5537b085d12b45bcdb3 /clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
parentcd839ccf9985884c25e87cc34f658c02c5e1cd93 (diff)
downloadbcm5719-llvm-3944c9638e56af25717407c583aaeae8a01d7629.tar.gz
bcm5719-llvm-3944c9638e56af25717407c583aaeae8a01d7629.zip
[clang-scan-deps] reuse the file manager across invocations of
the dependency scanner on a single worker thread This behavior can be controlled using the new `-reuse-filemanager` clang-scan-deps option. By default the file manager is reused. The added test/ClangScanDeps/symlink.cpp is able to pass with the reused filemanager after the related FileEntryRef changes landed earlier. The test test/ClangScanDeps/subframework_header_dir_symlink.m still fails when the file manager is reused (I run the FileCheck with not to make it PASS). I will address this in a follow-up patch that improves the DirectoryEntry name modelling in the FileManager. llvm-svn: 370420
Diffstat (limited to 'clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp')
-rw-r--r--clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
index 48aa68218c3..6ddce0dcee8 100644
--- a/clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
+++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp
@@ -12,5 +12,6 @@ using namespace clang;
using namespace tooling;
using namespace dependencies;
-DependencyScanningService::DependencyScanningService(ScanningMode Mode)
- : Mode(Mode) {}
+DependencyScanningService::DependencyScanningService(ScanningMode Mode,
+ bool ReuseFileManager)
+ : Mode(Mode), ReuseFileManager(ReuseFileManager) {}
OpenPOWER on IntegriCloud