Skip to content

Commit 11eb1d0

Browse files
committed
Address review comments.
1 parent 0403d3f commit 11eb1d0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class DependencyScanningWorker {
159159
/// (passed in the constructor).
160160
llvm::IntrusiveRefCntPtr<DependencyScanningWorkerFilesystem> DepFS;
161161

162-
friend class CompilerInstanceWithContext;
162+
friend CompilerInstanceWithContext;
163163
std::unique_ptr<CompilerInstanceWithContext> CIWithContext;
164164

165165
/// Private helper functions.

clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ computePrebuiltModulesASTMap(CompilerInstance &ScanInstance,
589589
}
590590

591591
std::unique_ptr<DependencyOutputOptions>
592-
takeDependencyOutputOptionsFrom(CompilerInstance &ScanInstance) {
592+
takeAndUpdateDependencyOutputOptionsFrom(CompilerInstance &ScanInstance) {
593593
// This function moves the existing dependency output options from the
594594
// invocation to the collector. The options in the invocation are reset,
595595
// which ensures that the compiler won't create new dependency collectors,
@@ -676,7 +676,7 @@ bool DependencyScanningAction::runInvocation(
676676
if (!MaybePrebuiltModulesASTMap)
677677
return false;
678678

679-
auto DepOutputOpts = takeDependencyOutputOptionsFrom(ScanInstance);
679+
auto DepOutputOpts = takeAndUpdateDependencyOutputOptionsFrom(ScanInstance);
680680

681681
MDC = initializeScanInstanceDependencyCollector(
682682
ScanInstance, std::move(DepOutputOpts), WorkingDirectory, Consumer,
@@ -775,7 +775,7 @@ llvm::Error CompilerInstanceWithContext::initialize() {
775775
"Prebuilt module scanning failed", llvm::inconvertibleErrorCode());
776776

777777
PrebuiltModuleASTMap = std::move(*MaybePrebuiltModulesASTMap);
778-
OutputOpts = takeDependencyOutputOptionsFrom(CI);
778+
OutputOpts = takeAndUpdateDependencyOutputOptionsFrom(CI);
779779

780780
// We do not create the target in initializeScanCompilerInstance because
781781
// setting it here is unique for by-name lookups. We create the target only

clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ computePrebuiltModulesASTMap(CompilerInstance &ScanInstance,
138138
SmallVector<StringRef> &StableDirs);
139139

140140
std::unique_ptr<DependencyOutputOptions>
141-
takeDependencyOutputOptionsFrom(CompilerInstance &ScanInstance);
141+
takeAndUpdateDependencyOutputOptionsFrom(CompilerInstance &ScanInstance);
142142

143143
/// Create the dependency collector that will collect the produced
144144
/// dependencies. May return the created ModuleDepCollector depending

0 commit comments

Comments
 (0)