Lines Matching refs:ContentCache

55 unsigned ContentCache::getSizeBytesMapped() const {  in getSizeBytesMapped()
61 llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const { in getMemoryBufferKind()
75 unsigned ContentCache::getSize() const { in getSize()
80 const char *ContentCache::getInvalidBOM(StringRef BufStr) { in getInvalidBOM()
104 ContentCache::getBufferOrNone(DiagnosticsEngine &Diag, FileManager &FM, in getBufferOrNone()
323 MemBufferInfos[i]->~ContentCache(); in ~SourceManager()
327 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator in ~SourceManager()
330 I->second->~ContentCache(); in ~SourceManager()
364 auto CloneContentCache = [&](const ContentCache *Cache) -> ContentCache * { in initializeForReplay()
365 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache; in initializeForReplay()
382 SrcMgr::ContentCache *&Slot = FileInfos[FileInfo.first]; in initializeForReplay()
389 ContentCache &SourceManager::getOrCreateContentCache(FileEntryRef FileEnt, in getOrCreateContentCache()
392 ContentCache *&Entry = FileInfos[FileEnt]; in getOrCreateContentCache()
397 Entry = ContentCacheAlloc.Allocate<ContentCache>(); in getOrCreateContentCache()
405 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
407 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt in getOrCreateContentCache()
411 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
423 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
426 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(); in createMemBufferContentCache()
427 new (Entry) ContentCache(); in createMemBufferContentCache()
479 SrcMgr::ContentCache &SourceManager::getFakeContentCacheForRecovery() const { in getFakeContentCacheForRecovery()
481 FakeContentCacheForRecovery = std::make_unique<SrcMgr::ContentCache>(); in getFakeContentCacheForRecovery()
544 SrcMgr::ContentCache &IR = getOrCreateContentCache(SourceFile, in createFileID()
594 FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, in createFileIDImpl()
684 SrcMgr::ContentCache &IR = getOrCreateContentCache(File->getLastRef()); in getMemoryBufferForFileOrNone()
690 SrcMgr::ContentCache &IR = getOrCreateContentCache(SourceFile->getLastRef()); in overrideFileContents()
1353 const ContentCache *Content; in getLineNumber()
1529 const SrcMgr::ContentCache *C = &FI.getContentCache(); in getPresumedLoc()
1717 const ContentCache *Content = &Entry.getFile().getContentCache(); in translateLineCol()