[clang][deps] Only generate absolute paths when asked to
authorJan Svoboda <jan_svoboda@apple.com>
Thu, 22 Apr 2021 11:49:25 +0000 (13:49 +0200)
committerJan Svoboda <jan_svoboda@apple.com>
Mon, 26 Apr 2021 08:53:41 +0000 (10:53 +0200)
commit0f7d4105c60b5b4ee80fd32225658a4d8261c120
treeae284ea2d25f58196f1f43dc551c345bd5e65591
parent18772de1ecb1a23b483e29987ae708ab641b1134
[clang][deps] Only generate absolute paths when asked to

Add option to `clang-scan-deps` to enable/disable generation of command-line arguments with absolute paths. This is essentially a revert of D100533, but with improved naming and added test.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D101051
clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h
clang/include/clang/Tooling/DependencyScanning/ModuleDepCollector.h
clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
clang/test/ClangScanDeps/modules-full.cpp
clang/tools/clang-scan-deps/ClangScanDeps.cpp