11#include "llvm/Support/Path.h"
19 sys::fs::file_status Status;
20 std::error_code EC = status(
Path, Status);
27 using namespace llvm::sys;
28 std::vector<std::string>
Result;
31 for (
auto It = fs::directory_iterator(
Path, EC),
32 End = fs::directory_iterator();
33 !EC && It != End; It.increment(EC)) {
37 Result.emplace_back(sys::path::filename(It->path()));
43std::vector<DirectoryWatcher::Event>
45 std::vector<DirectoryWatcher::Event> Events;
46 Events.reserve(
Scan.size());
static void Scan(IvarUsageMap &M, const Stmt *S)
The JSON file list parser is used to communicate input to InstallAPI.
std::optional< sys::fs::file_status > getFileStatus(StringRef Path)
std::vector< std::string > scanDirectory(StringRef Path)
@ Result
The result type of a method or function.
std::vector< DirectoryWatcher::Event > getAsFileEvents(const std::vector< std::string > &Scan)
Create event with EventKind::Added for every element in Scan.
Diagnostic wrappers for TextAPI types for error reporting.
@ Modified
Content of a file was modified.