Lines Matching refs:ContentCache
63 unsigned ContentCache::getSizeBytesMapped() const { in getSizeBytesMapped()
69 llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const { in getMemoryBufferKind()
81 unsigned ContentCache::getSize() const { in getSize()
86 const char *ContentCache::getInvalidBOM(StringRef BufStr) { in getInvalidBOM()
110 ContentCache::getBufferOrNone(DiagnosticsEngine &Diag, FileManager &FM, in getBufferOrNone()
331 MemBufferInfos[i]->~ContentCache(); in ~SourceManager()
337 I->second->~ContentCache(); in ~SourceManager()
372 auto CloneContentCache = [&](const ContentCache *Cache) -> ContentCache * { in initializeForReplay()
373 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache; in initializeForReplay()
390 SrcMgr::ContentCache *&Slot = FileInfos[FileInfo.first]; in initializeForReplay()
397 ContentCache &SourceManager::getOrCreateContentCache(FileEntryRef FileEnt, in getOrCreateContentCache()
400 ContentCache *&Entry = FileInfos[FileEnt]; in getOrCreateContentCache()
405 Entry = ContentCacheAlloc.Allocate<ContentCache>(); in getOrCreateContentCache()
412 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
414 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt in getOrCreateContentCache()
418 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache()
430 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
433 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(); in createMemBufferContentCache()
434 new (Entry) ContentCache(); in createMemBufferContentCache()
495 SrcMgr::ContentCache &SourceManager::getFakeContentCacheForRecovery() const { in getFakeContentCacheForRecovery()
497 FakeContentCacheForRecovery = std::make_unique<SrcMgr::ContentCache>(); in getFakeContentCacheForRecovery()
551 SrcMgr::ContentCache &IR = getOrCreateContentCache(SourceFile, in createFileID()
603 FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, in createFileIDImpl()
698 SrcMgr::ContentCache &IR = getOrCreateContentCache(File); in getMemoryBufferForFileOrNone()
704 SrcMgr::ContentCache &IR = getOrCreateContentCache(SourceFile); in overrideFileContents()
1308 const ContentCache *Content; in getLineNumber()
1484 const SrcMgr::ContentCache *C = &FI.getContentCache(); in getPresumedLoc()
1672 const ContentCache *Content = &Entry.getFile().getContentCache(); in translateLineCol()