Lines Matching refs:ContentCache

53 ContentCache::~ContentCache() {  in ~ContentCache()
60 unsigned ContentCache::getSizeBytesMapped() const { in getSizeBytesMapped()
66 llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const { in getMemoryBufferKind()
81 unsigned ContentCache::getSize() const { in getSize()
86 void ContentCache::replaceBuffer(llvm::MemoryBuffer *B, bool DoNotFree) { in replaceBuffer()
99 llvm::MemoryBuffer *ContentCache::getBuffer(DiagnosticsEngine &Diag, in getBuffer()
330 MemBufferInfos[i]->~ContentCache(); in ~SourceManager()
334 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator in ~SourceManager()
337 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()
391 const ContentCache *
397 ContentCache *&Entry = FileInfos[FileEnt]; in getOrCreateContentCache()
401 Entry = ContentCacheAlloc.Allocate<ContentCache>(); in getOrCreateContentCache()
409 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
411 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt in getOrCreateContentCache()
415 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
426 const ContentCache *
430 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(); in createMemBufferContentCache()
431 new (Entry) ContentCache(); in createMemBufferContentCache()
482 const SrcMgr::ContentCache *
485 FakeContentCacheForRecovery = llvm::make_unique<SrcMgr::ContentCache>(); in getFakeContentCacheForRecovery()
536 FileID SourceManager::createFileID(const ContentCache *File, in createFileID()
624 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File); in getMemoryBufferForFile()
632 const SrcMgr::ContentCache *IR = getOrCreateContentCache(SourceFile); in overrideFileContents()
635 const_cast<SrcMgr::ContentCache *>(IR)->replaceBuffer(Buffer, DoNotFree); in overrideFileContents()
636 const_cast<SrcMgr::ContentCache *>(IR)->BufferOverridden = true; in overrideFileContents()
656 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File); in disableFileContentsOverride()
657 const_cast<SrcMgr::ContentCache *>(IR)->replaceBuffer(nullptr); in disableFileContentsOverride()
658 const_cast<SrcMgr::ContentCache *>(IR)->ContentsEntry = IR->OrigEntry; in disableFileContentsOverride()
666 const SrcMgr::ContentCache *CC = getOrCreateContentCache(File); in setFileIsTransient()
667 const_cast<SrcMgr::ContentCache *>(CC)->IsTransient = true; in setFileIsTransient()
1199 ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI,
1202 static void ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI, in ComputeLineNumbers()
1256 ContentCache *Content; in getLineNumber()
1268 Content = const_cast<ContentCache*>(Entry.getFile().getContentCache()); in getLineNumber()
1427 const SrcMgr::ContentCache *C = FI.getContentCache(); in getPresumedLoc()
1582 const ContentCache *MainContentCache in translateFile()
1655 const ContentCache *FileContentCache in translateFile()
1703 ContentCache *Content in translateLineCol()
1704 = const_cast<ContentCache *>(Entry.getFile().getContentCache()); in translateLineCol()