clang  9.0.0
Functions | Variables
DirectoryWatcher-mac.cpp File Reference
#include "DirectoryScanner.h"
#include "clang/DirectoryWatcher/DirectoryWatcher.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Path.h"
#include <CoreServices/CoreServices.h>
Include dependency graph for DirectoryWatcher-mac.cpp:

Go to the source code of this file.

Functions

static FSEventStreamRef createFSEventStream (StringRef Path, std::function< void(llvm::ArrayRef< DirectoryWatcher::Event >, bool)>, dispatch_queue_t)
 
static void stopFSEventStream (FSEventStreamRef)
 
static void eventStreamCallback (ConstFSEventStreamRef Stream, void *ClientCallBackInfo, size_t NumEvents, void *EventPaths, const FSEventStreamEventFlags EventFlags[], const FSEventStreamEventId EventIds[])
 

Variables

constexpr const FSEventStreamEventFlags StreamInvalidatingFlags
 
constexpr const FSEventStreamEventFlags ModifyingFileEvents
 

Function Documentation

◆ createFSEventStream()

FSEventStreamRef createFSEventStream ( StringRef  Path,
std::function< void(llvm::ArrayRef< DirectoryWatcher::Event >, bool)>  Receiver,
dispatch_queue_t  Queue 
)
static

Definition at line 134 of file DirectoryWatcher-mac.cpp.

Referenced by stopFSEventStream().

◆ eventStreamCallback()

static void eventStreamCallback ( ConstFSEventStreamRef  Stream,
void *  ClientCallBackInfo,
size_t  NumEvents,
void *  EventPaths,
const FSEventStreamEventFlags  EventFlags[],
const FSEventStreamEventId  EventIds[] 
)
static

Definition at line 79 of file DirectoryWatcher-mac.cpp.

References clang::getFileStatus(), and i.

◆ stopFSEventStream()

void stopFSEventStream ( FSEventStreamRef  EventStream)
static

Variable Documentation

◆ ModifyingFileEvents

constexpr const FSEventStreamEventFlags ModifyingFileEvents
Initial value:
=
kFSEventStreamEventFlagItemCreated | kFSEventStreamEventFlagItemRenamed |
kFSEventStreamEventFlagItemModified

Definition at line 75 of file DirectoryWatcher-mac.cpp.

◆ StreamInvalidatingFlags

constexpr const FSEventStreamEventFlags StreamInvalidatingFlags
Initial value:
=
kFSEventStreamEventFlagUserDropped | kFSEventStreamEventFlagKernelDropped |
kFSEventStreamEventFlagMustScanSubDirs

Definition at line 71 of file DirectoryWatcher-mac.cpp.