Home | History | Annotate | Download | only in Basic

Lines Matching refs:Name

47 Status::Status(StringRef Name, UniqueID UID, sys::TimeValue MTime,
50 : Name(Name), UID(UID), MTime(MTime), User(User), Group(Group), Size(Size),
92 FileSystem::getBufferForFile(const llvm::Twine &Name, int64_t FileSize,
94 auto F = openFileForRead(Name);
98 return (*F)->getBuffer(Name, FileSize, RequiresNullTerminator, IsVolatile);
133 ErrorOr<std::unique_ptr<MemoryBuffer>> getBuffer(const Twine &Name,
154 RealFile::getBuffer(const Twine &Name, int64_t FileSize,
157 return MemoryBuffer::getOpenFile(FD, Name, FileSize, RequiresNullTerminator,
199 RealFileSystem::openFileForRead(const Twine &Name) {
201 if (std::error_code EC = sys::fs::openFileForRead(Name, FD))
203 return std::unique_ptr<File>(new RealFile(FD, Name.str()));
361 StringRef Name = llvm::sys::path::filename(CurrentEntry.getName());
362 if (SeenNames.insert(Name).second)
363 return EC; // name not seen before
433 getBuffer(const Twine &Name, int64_t FileSize, bool RequiresNullTerminator,
449 InMemoryNode *getChild(StringRef Name) {
450 auto I = Entries.find(Name);
455 InMemoryNode *addChild(StringRef Name, std::unique_ptr<InMemoryNode> Child) {
456 return Entries.insert(make_pair(Name, std::move(Child)))
510 StringRef Name = *I;
511 detail::InMemoryNode *Node = Dir->getChild(Name);
522 Dir->addChild(Name, llvm::make_unique<detail::InMemoryFile>(
530 StringRef(Path.str().begin(), Name.end() - Path.str().begin()),
535 Name, llvm::make_unique<detail::InMemoryDirectory>(std::move(Stat))));
678 std::string Name;
682 Entry(EntryKind K, StringRef Name) : Kind(K), Name(Name) {}
683 StringRef getName() const { return Name; }
692 RedirectingDirectoryEntry(StringRef Name,
695 : Entry(EK_Directory, Name), Contents(std::move(Contents)),
715 RedirectingFileEntry(StringRef Name, StringRef ExternalContentsPath,
717 : Entry(EK_File, Name), ExternalContentsPath(ExternalContentsPath),
720 /// \brief whether to use the external path as the name for this file.
767 /// 'name': <string>,
785 /// 'name': <string>,
786 /// 'use-external-name': <boolean> # Optional
793 /// In both cases, the 'name' field may contain multiple path components (e.g.
802 /// @name Configuration
958 KeyStatusPair("name", true),
962 KeyStatusPair("use-external-name", false),
970 std::string Name;
987 if (Key == "name") {
990 Name = Value;
1035 } else if (Key == "use-external-name") {
1060 error(N, "'use-external-name' is not supported for directories");
1065 StringRef Trimmed(Name);
1091 // if 'name' contains multiple components, create implicit directory entries
1312 getBuffer(const Twine &Name, int64_t FileSize, bool RequiresNullTerminator,
1314 return InnerFile->getBuffer(Name, FileSize, RequiresNullTerminator,
1339 // FIXME: Update the status with the name and VFSMapped.
1417 StringRef Name =
1423 OS.indent(Indent + 2) << "'name': \"" << llvm::yaml::escape(Name) << "\",\n";
1439 OS.indent(Indent + 2) << "'name': \"" << llvm::yaml::escape(VPath) << "\",\n";