Skip to content

Commit d37f1ac

Browse files
This call-site should have been updated as part of D34304.
Summary: Use an argument adjuster to preserve behavior inadvertantly changed by D34304. Reviewers: klimek Differential Revision: https://reviews.llvm.org/D35095 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307329 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b3bfd38 commit d37f1ac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/Tooling/Tooling.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ bool runToolOnCodeWithArgs(
139139
OverlayFileSystem->pushOverlay(InMemoryFileSystem);
140140
llvm::IntrusiveRefCntPtr<FileManager> Files(
141141
new FileManager(FileSystemOptions(), OverlayFileSystem));
142-
ToolInvocation Invocation(getSyntaxOnlyToolArgs(ToolName, Args, FileNameRef),
143-
ToolAction, Files.get(),
144-
std::move(PCHContainerOps));
142+
ArgumentsAdjuster Adjuster = getClangStripDependencyFileAdjuster();
143+
ToolInvocation Invocation(
144+
getSyntaxOnlyToolArgs(ToolName, Adjuster(Args, FileNameRef), FileNameRef),
145+
ToolAction, Files.get(),
146+
std::move(PCHContainerOps));
145147

146148
SmallString<1024> CodeStorage;
147149
InMemoryFileSystem->addFile(FileNameRef, 0,

0 commit comments

Comments
 (0)