Lines Matching defs:Name
38 Status::Status(StringRef Name, StringRef ExternalName, UniqueID UID,
41 : Name(Name), UID(UID), MTime(MTime), User(User), Group(Group), Size(Size),
71 FileSystem::getBufferForFile(const llvm::Twine &Name, int64_t FileSize,
73 auto F = openFileForRead(Name);
77 return (*F)->getBuffer(Name, FileSize, RequiresNullTerminator, IsVolatile);
98 getBuffer(const Twine &Name, int64_t FileSize = -1,
102 void setName(StringRef Name) override;
121 RealFile::getBuffer(const Twine &Name, int64_t FileSize,
124 return MemoryBuffer::getOpenFile(FD, Name, FileSize, RequiresNullTerminator,
145 void RealFile::setName(StringRef Name) {
146 S.setName(Name);
169 RealFileSystem::openFileForRead(const Twine &Name) {
171 if (std::error_code EC = sys::fs::openFileForRead(Name, FD))
174 Result->setName(Name.str());
298 StringRef Name = llvm::sys::path::filename(CurrentEntry.getName());
299 if (SeenNames.insert(Name).second)
300 return EC; // name not seen before
351 std::string Name;
355 Entry(EntryKind K, StringRef Name) : Kind(K), Name(Name) {}
356 StringRef getName() const { return Name; }
366 DirectoryEntry(StringRef Name, std::vector<Entry *> Contents, Status S)
367 : Entry(EK_Directory, Name), Contents(std::move(Contents)),
387 FileEntry(StringRef Name, StringRef ExternalContentsPath, NameKind UseName)
388 : Entry(EK_File, Name), ExternalContentsPath(ExternalContentsPath),
391 /// \brief whether to use the external path as the name for this file.
436 /// 'name': <string>,
454 /// 'name': <string>,
455 /// 'use-external-name': <boolean> # Optional
462 /// In both cases, the 'name' field may contain multiple path components (e.g.
470 /// @name Configuration
621 KeyStatusPair("name", true),
625 KeyStatusPair("use-external-name", false),
634 std::string Name;
651 if (Key == "name") {
654 Name = Value;
699 } else if (Key == "use-external-name") {
722 error(N, "'use-external-name' is not supported for directories");
727 StringRef Trimmed(Name);
752 // if 'name' contains multiple components, create implicit directory entries
1049 StringRef Name =
1055 OS.indent(Indent + 2) << "'name': \"" << llvm::yaml::escape(Name) << "\",\n";
1071 OS.indent(Indent + 2) << "'name': \"" << llvm::yaml::escape(VPath) << "\",\n";