================ @@ -201,6 +201,21 @@ class ErrorDummyFileSystem : public DummyFileSystem { } }; +/// A version of \c DummyFileSystem that aborts on \c status() to test that +/// \c exists() is being used. +class NoStatusDummyFileSystem : public DummyFileSystem { +public: + ErrorOr<vfs::Status> status(const Twine &Path) override { + llvm::report_fatal_error( + "unexpected call to NoStatusDummyFileSystem::status"); + } + + bool exists(const Twine &Path) override { + auto Status = DummyFileSystem::status(Path); ---------------- aganea wrote:
Explicit return type here too. https://github.com/llvm/llvm-project/pull/88152 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits