aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2017-07-06 22:47:19 +0000
committerSterling Augustine <saugustine@google.com>2017-07-06 22:47:19 +0000
commit6b030ab461712b8f286dc2a794c2ba6b76bf6c8f (patch)
tree789368eea7b6d2afaafe313dd015ba6387059fd8
parent20526b2725c6d570057d10d12a8ad0ae830c3923 (diff)
downloadllvm-6b030ab461712b8f286dc2a794c2ba6b76bf6c8f.zip
llvm-6b030ab461712b8f286dc2a794c2ba6b76bf6c8f.tar.gz
llvm-6b030ab461712b8f286dc2a794c2ba6b76bf6c8f.tar.bz2
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 llvm-svn: 307329
-rw-r--r--clang/lib/Tooling/Tooling.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp
index 19d0de1..c84fbf4 100644
--- a/clang/lib/Tooling/Tooling.cpp
+++ b/clang/lib/Tooling/Tooling.cpp
@@ -139,9 +139,11 @@ bool runToolOnCodeWithArgs(
OverlayFileSystem->pushOverlay(InMemoryFileSystem);
llvm::IntrusiveRefCntPtr<FileManager> Files(
new FileManager(FileSystemOptions(), OverlayFileSystem));
- ToolInvocation Invocation(getSyntaxOnlyToolArgs(ToolName, Args, FileNameRef),
- ToolAction, Files.get(),
- std::move(PCHContainerOps));
+ ArgumentsAdjuster Adjuster = getClangStripDependencyFileAdjuster();
+ ToolInvocation Invocation(
+ getSyntaxOnlyToolArgs(ToolName, Adjuster(Args, FileNameRef), FileNameRef),
+ ToolAction, Files.get(),
+ std::move(PCHContainerOps));
SmallString<1024> CodeStorage;
InMemoryFileSystem->addFile(FileNameRef, 0,