[PATCH] D156234: [clang][deps] provide support for cc1 command line scanning

Connor Sughrue via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 25 05:44:15 PDT 2023


cpsughrue created this revision.
cpsughrue added reviewers: Bigcheese, jansvoboda11.
Herald added a project: All.
cpsughrue requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Allow users to run a dependency scan with a cc1 command line in addition to a driver command line. The scan was being carried out with a cc1 command line, but `DependencyScanningWorker::computeDependencies` assumed that the user always provided a driver command line. Now `DependencyScanningWorker::computeDependencies` can handle the case where the user provides a cc1 command line.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156234

Files:
  clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
  clang/unittests/Tooling/DependencyScannerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156234.543933.patch
Type: text/x-patch
Size: 6681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230725/ed28cc6f/attachment-0001.bin>


More information about the cfe-commits mailing list