Lines Matching defs:ContentCache

85   class ContentCache {
95 // 8 bytes for every ContentCache object, but each of these corresponds to
105 /// This is owned by the ContentCache object. The bits indicate
110 /// \brief Reference to the file entry representing this ContentCache.
114 /// It is possible for this to be NULL if the ContentCache encapsulates
130 /// \brief The number of lines in this ContentCache.
146 ContentCache(const FileEntry *Ent = nullptr)
153 ContentCache(const FileEntry *Ent, const FileEntry *contentEnt)
158 ~ContentCache();
163 ContentCache(const ContentCache &RHS)
171 "Passed ContentCache object cannot own a buffer.");
191 /// ContentCache.
194 /// arbitrary scratch buffer. If the ContentCache encapsulates a source
199 /// ContentCache.
234 ContentCache &operator=(const ContentCache& RHS) LLVM_DELETED_FUNCTION;
237 // Assert that the \c ContentCache objects will always be 8-byte aligned so
239 static_assert(llvm::AlignOf<ContentCache>::Alignment >= 8,
240 "ContentCache must be 8-byte aligned.");
249 /// FileInfos contain a "ContentCache *", with the contents of the file.
263 /// \brief Contains the ContentCache* and the bits indicating the
273 static FileInfo get(SourceLocation IL, const ContentCache *Con,
279 assert((X.Data & 7) == 0 &&"ContentCache pointer insufficiently aligned");
288 const ContentCache* getContentCache() const {
289 return reinterpret_cast<const ContentCache*>(Data & ~uintptr_t(7));
564 /// This map allows us to merge ContentCache entries based
565 /// on their FileEntry*. All ContentCache objects will thus have unique,
567 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos;
569 /// \brief True if the ContentCache for files that are overriden by other
597 /// All FileEntry* within the stored ContentCache objects are NULL,
599 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
651 mutable SrcMgr::ContentCache *LastLineNoContentCache;
690 mutable SrcMgr::ContentCache *FakeContentCacheForRecovery;
780 const SrcMgr::ContentCache *
909 const SrcMgr::ContentCache *Content = Entry.getFile().getContentCache();
918 const SrcMgr::ContentCache *Content = sloc.getFile().getContentCache();
1378 /// ContentCache allocator.
1458 typedef llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>
1557 const SrcMgr::ContentCache *getFakeContentCacheForRecovery() const;
1610 /// \brief Create a new fileID for the specified ContentCache and
1613 /// This works regardless of whether the ContentCache corresponds to a
1615 FileID createFileID(const SrcMgr::ContentCache* File,
1620 const SrcMgr::ContentCache *
1624 /// \brief Create a new ContentCache for the specified memory buffer.
1625 const SrcMgr::ContentCache *