10b57cec5SDimitry Andric //===- DirectoryWatcher-not-implemented.cpp -------------------------------===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric 90b57cec5SDimitry Andric #include "clang/DirectoryWatcher/DirectoryWatcher.h" 100b57cec5SDimitry Andric 110b57cec5SDimitry Andric using namespace llvm; 120b57cec5SDimitry Andric using namespace clang; 130b57cec5SDimitry Andric create(StringRef Path,std::function<void (llvm::ArrayRef<DirectoryWatcher::Event>,bool)> Receiver,bool WaitForInitialSync)14*a7dea167SDimitry Andricllvm::Expected<std::unique_ptr<DirectoryWatcher>> clang::DirectoryWatcher::create( 150b57cec5SDimitry Andric StringRef Path, 160b57cec5SDimitry Andric std::function<void(llvm::ArrayRef<DirectoryWatcher::Event>, bool)> Receiver, 170b57cec5SDimitry Andric bool WaitForInitialSync) { 18*a7dea167SDimitry Andric return llvm::make_error<llvm::StringError>( 19*a7dea167SDimitry Andric "DirectoryWatcher is not implemented for this platform!", 20*a7dea167SDimitry Andric llvm::inconvertibleErrorCode()); 210b57cec5SDimitry Andric } 22