Home | History | Annotate | Download | only in Basic

Lines Matching refs:Entry

467     for (const auto &Entry : Entries) {
468 Result += Entry.second->toString(Indent + 2);
676 class Entry {
681 virtual ~Entry();
682 Entry(EntryKind K, StringRef Name) : Kind(K), Name(Name) {}
687 class RedirectingDirectoryEntry : public Entry {
688 std::vector<std::unique_ptr<Entry>> Contents;
693 std::vector<std::unique_ptr<Entry>> Contents,
695 : Entry(EK_Directory, Name), Contents(std::move(Contents)),
701 static bool classof(const Entry *E) { return E->getKind() == EK_Directory; }
704 class RedirectingFileEntry : public Entry {
717 : Entry(EK_File, Name), ExternalContentsPath(ExternalContentsPath),
725 static bool classof(const Entry *E) { return E->getKind() == EK_File; }
795 /// must be uniquely represented by a directory entry.
798 std::vector<std::unique_ptr<Entry>> Roots;
822 ErrorOr<Entry *> lookupPath(const Twine &Path);
826 ErrorOr<Entry *> lookupPath(sys::path::const_iterator Start,
827 sys::path::const_iterator End, Entry *From);
829 /// \brief Get the status of a given an \c Entry.
830 ErrorOr<Status> status(const Twine &Path, Entry *E);
851 ErrorOr<Entry *> E = lookupPath(Dir);
950 std::unique_ptr<Entry> parseEntry(yaml::Node *N) {
953 error(N, "expected mapping node for file or directory entry");
968 std::vector<std::unique_ptr<Entry>> EntryArrayContents;
1005 "entry already has 'contents' or 'external-contents'");
1020 if (std::unique_ptr<Entry> E = parseEntry(&*I))
1028 "entry already has 'contents' or 'external-contents'");
1073 std::unique_ptr<Entry> Result;
1095 std::vector<std::unique_ptr<Entry>> Entries;
1145 if (std::unique_ptr<Entry> E = parseEntry(&*I))
1189 Entry::~Entry() = default;
1216 ErrorOr<Entry *> RedirectingFileSystem::lookupPath(const Twine &Path_) {
1229 for (const std::unique_ptr<Entry> &Root : Roots) {
1230 ErrorOr<Entry *> Result = lookupPath(Start, End, Root.get());
1237 ErrorOr<Entry *>
1239 sys::path::const_iterator End, Entry *From) {
1260 for (const std::unique_ptr<Entry> &DirEntry :
1262 ErrorOr<Entry *> Result = lookupPath(Start, End, DirEntry.get());
1278 ErrorOr<Status> RedirectingFileSystem::status(const Twine &Path, Entry *E) {
1294 ErrorOr<Entry *> Result = lookupPath(Path);
1323 ErrorOr<Entry *> E = lookupPath(Path);
1457 const YAMLVFSEntry &Entry = Entries.front();
1458 startDirectory(path::parent_path(Entry.VPath));
1459 writeEntry(path::filename(Entry.VPath), Entry.RPath);
1461 for (const auto &Entry : Entries.slice(1)) {
1462 StringRef Dir = path::parent_path(Entry.VPath);
1473 writeEntry(path::filename(Entry.VPath), Entry.RPath);