diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-11-08 16:57:01 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-11-08 16:57:01 +0000 |
commit | 4f6cad78cf538ef8c8177ac4bc4e58858a8a3843 (patch) | |
tree | c3338a76e6eec34320a26f07c52197bf71979c99 /lib/Tooling/Tooling.cpp | |
parent | cc1c5250d219a58044567aff7f298100b53ee5a0 (diff) |
[Tooling] Produce diagnostics for missing input files.
Summary:
This was disabled way back in 2011, in the dark times before Driver was VFS-aware.
Also, make driver more VFS-aware :-)
This breaks one ClangTidy test (we improved the error message), will fix when
submitting.
Reviewers: ioeric
Subscribers: cfe-commits, alexfh
Differential Revision: https://reviews.llvm.org/D53958
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/Tooling.cpp')
-rw-r--r-- | lib/Tooling/Tooling.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index eb9451d8b7..f143f7fe71 100644 --- a/lib/Tooling/Tooling.cpp +++ b/lib/Tooling/Tooling.cpp @@ -303,8 +303,6 @@ bool ToolInvocation::run() { const std::unique_ptr<driver::Driver> Driver( newDriver(&Diagnostics, BinaryName, Files->getVirtualFileSystem())); - // Since the input might only be virtual, don't check whether it exists. - Driver->setCheckInputsExist(false); const std::unique_ptr<driver::Compilation> Compilation( Driver->BuildCompilation(llvm::makeArrayRef(Argv))); if (!Compilation) |