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()
384 MemBufferInfos[i]->~ContentCache(); in ~SourceManager()
388 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator in ~SourceManager()
391 I->second->~ContentCache(); in ~SourceManager()
419 const ContentCache *
425 ContentCache *&Entry = FileInfos[FileEnt]; in getOrCreateContentCache()
429 Entry = ContentCacheAlloc.Allocate<ContentCache>(); in getOrCreateContentCache()
437 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
439 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt in getOrCreateContentCache()
443 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
454 const ContentCache *SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
457 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(); in createMemBufferContentCache()
458 new (Entry) ContentCache(); in createMemBufferContentCache()
507 const SrcMgr::ContentCache *
510 FakeContentCacheForRecovery = llvm::make_unique<SrcMgr::ContentCache>(); in getFakeContentCacheForRecovery()
561 FileID SourceManager::createFileID(const ContentCache *File, in createFileID()
638 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File); in getMemoryBufferForFile()
646 const SrcMgr::ContentCache *IR = getOrCreateContentCache(SourceFile); in overrideFileContents()
649 const_cast<SrcMgr::ContentCache *>(IR)->replaceBuffer(Buffer, DoNotFree); in overrideFileContents()
650 const_cast<SrcMgr::ContentCache *>(IR)->BufferOverridden = true; in overrideFileContents()
670 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File); in disableFileContentsOverride()
671 const_cast<SrcMgr::ContentCache *>(IR)->replaceBuffer(nullptr); in disableFileContentsOverride()
672 const_cast<SrcMgr::ContentCache *>(IR)->ContentsEntry = IR->OrigEntry; in disableFileContentsOverride()
1187 ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI,
1190 static void ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI, in ComputeLineNumbers()
1283 ContentCache *Content; in getLineNumber()
1295 Content = const_cast<ContentCache*>(Entry.getFile().getContentCache()); in getLineNumber()
1454 const SrcMgr::ContentCache *C = FI.getContentCache(); in getPresumedLoc()
1609 const ContentCache *MainContentCache in translateFile()
1682 const ContentCache *FileContentCache in translateFile()
1730 ContentCache *Content in translateLineCol()
1731 = const_cast<ContentCache *>(Entry.getFile().getContentCache()); in translateLineCol()