DirectoryWatcher-not-implemented.cpp 835 B

123456789101112131415161718192021
  1. //===- DirectoryWatcher-not-implemented.cpp -------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #include "clang/DirectoryWatcher/DirectoryWatcher.h"
  9. using namespace llvm;
  10. using namespace clang;
  11. llvm::Expected<std::unique_ptr<DirectoryWatcher>> clang::DirectoryWatcher::create(
  12. StringRef Path,
  13. std::function<void(llvm::ArrayRef<DirectoryWatcher::Event>, bool)> Receiver,
  14. bool WaitForInitialSync) {
  15. return llvm::make_error<llvm::StringError>(
  16. "DirectoryWatcher is not implemented for this platform!",
  17. llvm::inconvertibleErrorCode());
  18. }