9#ifndef LLVM_CLANG_DIRECTORYWATCHER_DIRECTORYWATCHER_H
10#define LLVM_CLANG_DIRECTORYWATCHER_DIRECTORYWATCHER_H
12#include "llvm/ADT/ArrayRef.h"
13#include "llvm/ADT/StringRef.h"
14#include "llvm/Support/Error.h"
111 bool WaitForInitialSync);
Provides notifications for file changes in a directory.
DirectoryWatcher(DirectoryWatcher &&)=default
virtual ~DirectoryWatcher()=default
static llvm::Expected< std::unique_ptr< DirectoryWatcher > > create(llvm::StringRef Path, std::function< void(llvm::ArrayRef< DirectoryWatcher::Event > Events, bool IsInitial)> Receiver, bool WaitForInitialSync)
llvm fatal_error if
DirectoryWatcher(const DirectoryWatcher &)=delete
DirectoryWatcher & operator=(const DirectoryWatcher &)=delete
DirectoryWatcher()=default
The JSON file list parser is used to communicate input to InstallAPI.
Event(EventKind Kind, llvm::StringRef Filename)
@ WatcherGotInvalidated
The DirectoryWatcher that originated this event is no longer valid and its behavior is unspecified.
@ WatchedDirRemoved
The watched directory got deleted.
@ Modified
Content of a file was modified.
std::string Filename
Filename that this event is related to or an empty string in case this event is related to the watche...