• Home
  • Raw
  • Download

Lines Matching refs:ContentCache

38 ContentCache::~ContentCache() {  in ~ContentCache()
45 unsigned ContentCache::getSizeBytesMapped() const { in getSizeBytesMapped()
51 llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const { in getMemoryBufferKind()
66 unsigned ContentCache::getSize() const { in getSize()
71 void ContentCache::replaceBuffer(llvm::MemoryBuffer *B, bool DoNotFree) { in replaceBuffer()
84 llvm::MemoryBuffer *ContentCache::getBuffer(DiagnosticsEngine &Diag, in getBuffer()
390 MemBufferInfos[i]->~ContentCache(); in ~SourceManager()
394 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator in ~SourceManager()
397 I->second->~ContentCache(); in ~SourceManager()
428 const ContentCache *
434 ContentCache *&Entry = FileInfos[FileEnt]; in getOrCreateContentCache()
438 Entry = ContentCacheAlloc.Allocate<ContentCache>(); in getOrCreateContentCache()
446 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
448 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt in getOrCreateContentCache()
452 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
463 const ContentCache *
466 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(); in createMemBufferContentCache()
467 new (Entry) ContentCache(); in createMemBufferContentCache()
516 const SrcMgr::ContentCache *
519 FakeContentCacheForRecovery = new ContentCache(); in getFakeContentCacheForRecovery()
570 FileID SourceManager::createFileID(const ContentCache *File, in createFileID()
647 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File); in getMemoryBufferForFile()
655 const SrcMgr::ContentCache *IR = getOrCreateContentCache(SourceFile); in overrideFileContents()
658 const_cast<SrcMgr::ContentCache *>(IR)->replaceBuffer(Buffer, DoNotFree); in overrideFileContents()
659 const_cast<SrcMgr::ContentCache *>(IR)->BufferOverridden = true; in overrideFileContents()
679 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File); in disableFileContentsOverride()
680 const_cast<SrcMgr::ContentCache *>(IR)->replaceBuffer(nullptr); in disableFileContentsOverride()
681 const_cast<SrcMgr::ContentCache *>(IR)->ContentsEntry = IR->OrigEntry; in disableFileContentsOverride()
1196 ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI,
1199 static void ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI, in ComputeLineNumbers()
1292 ContentCache *Content; in getLineNumber()
1304 Content = const_cast<ContentCache*>(Entry.getFile().getContentCache()); in getLineNumber()
1463 const SrcMgr::ContentCache *C = FI.getContentCache(); in getPresumedLoc()
1618 const ContentCache *MainContentCache in translateFile()
1691 const ContentCache *FileContentCache in translateFile()
1739 ContentCache *Content in translateLineCol()
1740 = const_cast<ContentCache *>(Entry.getFile().getContentCache()); in translateLineCol()