[PATCH] D132405: [clang][deps] Split translation units into individual -cc1 or other commands
Ben Langmuir via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 15:53:38 PDT 2022
benlangmuir added inline comments.
================
Comment at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h:102
+std::vector<std::string>
+serializeCompilerInvocation(const CompilerInvocation &CI);
+
----------------
jansvoboda11 wrote:
> Maybe we could add this API directly to `CompilerInvocation`. I can see lots of clients not caring about the (potentially more efficient) `CompilerInvocation::generateCC1CommandLine()` with `StringAllocator` and inventing their own implementation of this.
https://reviews.llvm.org/D132419
================
Comment at: clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp:438
+
+void dependencies::clearImplicitModuleBuildOptions(CompilerInvocation &CI) {
+ CI.getLangOpts()->ImplicitModules = false;
----------------
jansvoboda11 wrote:
> Wondering if we could move this to `CompilerInvocation`, right besides `resetNonModularOptions()`.
https://reviews.llvm.org/D132419
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132405/new/
https://reviews.llvm.org/D132405
More information about the cfe-commits
mailing list