Lines Matching refs:ContentCache

55 unsigned ContentCache::getSizeBytesMapped() const {  in getSizeBytesMapped()
61 llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const { in getMemoryBufferKind()
73 unsigned ContentCache::getSize() const { in getSize()
78 const char *ContentCache::getInvalidBOM(StringRef BufStr) { in getInvalidBOM()
102 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()
404 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
406 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt in getOrCreateContentCache()
410 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
422 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
425 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(); in createMemBufferContentCache()
426 new (Entry) ContentCache(); in createMemBufferContentCache()
480 SrcMgr::ContentCache &SourceManager::getFakeContentCacheForRecovery() const { in getFakeContentCacheForRecovery()
482 FakeContentCacheForRecovery = std::make_unique<SrcMgr::ContentCache>(); in getFakeContentCacheForRecovery()
547 SrcMgr::ContentCache &IR = getOrCreateContentCache(SourceFile, in createFileID()
599 FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, in createFileIDImpl()
686 SrcMgr::ContentCache &IR = getOrCreateContentCache(File->getLastRef()); in getMemoryBufferForFileOrNone()
692 SrcMgr::ContentCache &IR = getOrCreateContentCache(SourceFile->getLastRef()); in overrideFileContents()
1359 const ContentCache *Content; in getLineNumber()
1535 const SrcMgr::ContentCache *C = &FI.getContentCache(); in getPresumedLoc()
1723 const ContentCache *Content = &Entry.getFile().getContentCache(); in translateLineCol()