Jan Korous | 77dd8a7 | 2019-07-12 20:34:10 +0000 | [diff] [blame] | 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 | |
| 9 | #include "clang/DirectoryWatcher/DirectoryWatcher.h" |
| 10 | |
| 11 | using namespace llvm; |
| 12 | using namespace clang; |
| 13 | |
Puyan Lotfi | ef74924 | 2019-08-06 05:12:23 +0000 | [diff] [blame] | 14 | llvm::Expected<std::unique_ptr<DirectoryWatcher>> clang::DirectoryWatcher::create( |
Jan Korous | 77dd8a7 | 2019-07-12 20:34:10 +0000 | [diff] [blame] | 15 | StringRef Path, |
| 16 | std::function<void(llvm::ArrayRef<DirectoryWatcher::Event>, bool)> Receiver, |
| 17 | bool WaitForInitialSync) { |
Puyan Lotfi | ef74924 | 2019-08-06 05:12:23 +0000 | [diff] [blame] | 18 | return llvm::make_error<llvm::StringError>( |
| 19 | "DirectoryWatcher is not implemented for this platform!", |
| 20 | llvm::inconvertibleErrorCode()); |
Jan Korous | 77dd8a7 | 2019-07-12 20:34:10 +0000 | [diff] [blame] | 21 | } |