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" 99 : Kind(Kind), Filename(Filename) {}
107 create(llvm::StringRef Path,
111 bool WaitForInitialSync);
124 #endif // LLVM_CLANG_DIRECTORYWATCHER_DIRECTORYWATCHER_H Content of a file was modified.
The DirectoryWatcher that originated this event is no longer valid and its behavior is unspecified...
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()=default
std::string Filename
Filename that this event is related to or an empty string in case this event is related to the watche...
The watched directory got deleted.
Dataflow Directional Tag Classes.
DirectoryWatcher & operator=(const DirectoryWatcher &)=delete
Event(EventKind Kind, llvm::StringRef Filename)
virtual ~DirectoryWatcher()=default
Provides notifications for file changes in a directory.