llvm-project/clang/lib/DirectoryWatcher/default/DirectoryWatcher-not-implem...

22 lines
836 B
C++

//===- DirectoryWatcher-not-implemented.cpp -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "clang/DirectoryWatcher/DirectoryWatcher.h"
using namespace llvm;
using namespace clang;
llvm::Expected<std::unique_ptr<DirectoryWatcher>> clang::DirectoryWatcher::create(
StringRef Path,
std::function<void(llvm::ArrayRef<DirectoryWatcher::Event>, bool)> Receiver,
bool WaitForInitialSync) {
return llvm::make_error<llvm::StringError>(
"DirectoryWatcher is not implemented for this platform!",
llvm::inconvertibleErrorCode());
}