diff options
| author | Sterling Augustine <saugustine@google.com> | 2017-07-06 22:47:19 +0000 |
|---|---|---|
| committer | Sterling Augustine <saugustine@google.com> | 2017-07-06 22:47:19 +0000 |
| commit | 6b030ab461712b8f286dc2a794c2ba6b76bf6c8f (patch) | |
| tree | 789368eea7b6d2afaafe313dd015ba6387059fd8 | |
| parent | 20526b2725c6d570057d10d12a8ad0ae830c3923 (diff) | |
| download | llvm-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.cpp | 8 |
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, |
