Lines Matching defs:FileEntry
51 /// If the 'File' member is valid, then this FileEntry has an open file
53 class FileEntry {
62 bool IsValid; // Is this \c FileEntry initialized and valid?
64 /// \brief The open file, if it is owned by the \p FileEntry.
68 void operator=(const FileEntry &) = delete;
71 FileEntry()
75 // FIXME: this is here to allow putting FileEntry in std::map. Once we have
78 /// \c FileEntry.
79 FileEntry(const FileEntry &FE) : UniqueID(FE.UniqueID),
81 assert(!isValid() && "Cannot copy an initialized FileEntry");
95 bool operator<(const FileEntry &RHS) const { return UniqueID < RHS.UniqueID; }
123 std::map<llvm::sys::fs::UniqueID, FileEntry> UniqueRealFiles;
131 SmallVector<std::unique_ptr<FileEntry>, 4> VirtualFileEntries;
147 llvm::StringMap<FileEntry*, llvm::BumpPtrAllocator> SeenFileEntries;
155 /// \brief Each FileEntry we create is assigned a unique ID #.
217 const FileEntry *getFile(StringRef Filename, bool OpenFile = false,
232 const FileEntry *getVirtualFile(StringRef Filename, off_t Size,
238 getBufferForFile(const FileEntry *Entry, bool isVolatile = false,
253 void invalidateCache(const FileEntry *Entry);
267 /// file to the corresponding FileEntry pointer.
269 SmallVectorImpl<const FileEntry *> &UIDToFiles) const;
272 /// FileEntry. Use with caution.
273 static void modifyFileEntry(FileEntry *File, off_t Size,