11 #include "llvm/Support/Path.h" 18 sys::fs::file_status Status;
19 std::error_code EC = status(Path, Status);
27 std::vector<std::string>
Result;
30 for (
auto It = fs::directory_iterator(Path, EC),
31 End = fs::directory_iterator();
32 !EC && It !=
End; It.increment(EC)) {
34 if (!status.hasValue())
36 Result.emplace_back(sys::path::filename(It->path()));
42 std::vector<DirectoryWatcher::Event>
44 std::vector<DirectoryWatcher::Event> Events;
45 Events.reserve(Scan.size());
47 for (
const auto &File : Scan) {
Specialize PointerLikeTypeTraits to allow LazyGenerationalUpdatePtr to be placed into a PointerUnion...
static void Scan(IvarUsageMap &M, const Stmt *S)
Content of a file was modified.
std::vector< DirectoryWatcher::Event > getAsFileEvents(const std::vector< std::string > &Scan)
Create event with EventKind::Added for every element in Scan.
std::vector< std::string > scanDirectory(StringRef Path)
The result type of a method or function.
Optional< sys::fs::file_status > getFileStatus(StringRef Path)
Dataflow Directional Tag Classes.