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" 98 : Kind(Kind), Filename(Filename) {}
104 static std::unique_ptr<DirectoryWatcher>
105 create(llvm::StringRef Path,
109 bool WaitForInitialSync);
122 #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...
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)
static std::unique_ptr< DirectoryWatcher > create(llvm::StringRef Path, std::function< void(llvm::ArrayRef< DirectoryWatcher::Event > Events, bool IsInitial)> Receiver, bool WaitForInitialSync)
Returns nullptr if.
virtual ~DirectoryWatcher()=default
Provides notifications for file changes in a directory.