Home | History | Annotate | Download | only in Basic

Lines Matching refs:ContentCache

39 ContentCache::~ContentCache() {
45 /// ContentCache. This can be 0 if the MemBuffer was not actually expanded.
46 unsigned ContentCache::getSizeBytesMapped() const {
52 llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const {
63 /// getSize - Returns the size of the content encapsulated by this ContentCache.
65 /// scratch buffer. If the ContentCache encapsulates a source file, that
67 unsigned ContentCache::getSize() const {
72 void ContentCache::replaceBuffer(const llvm::MemoryBuffer *B,
86 const llvm::MemoryBuffer *ContentCache::getBuffer(DiagnosticsEngine &Diag,
387 MemBufferInfos[i]->~ContentCache();
391 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator
394 I->second->~ContentCache();
426 /// getOrCreateContentCache - Create or return a cached ContentCache for the
428 const ContentCache *
433 ContentCache *&Entry = FileInfos[FileEnt];
439 unsigned EntryAlign = llvm::AlignOf<ContentCache>::Alignment;
441 Entry = ContentCacheAlloc.Allocate<ContentCache>(1, EntryAlign);
444 // pass that file to ContentCache.
448 new (Entry) ContentCache(FileEnt);
450 new (Entry) ContentCache(OverridenFilesKeepOriginalName ? FileEnt
458 /// createMemBufferContentCache - Create a new ContentCache for the specified
460 const ContentCache*
462 // Add a new ContentCache to the MemBufferInfos list and return it. Make sure
465 unsigned EntryAlign = llvm::AlignOf<ContentCache>::Alignment;
467 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(1, EntryAlign);
468 new (Entry) ContentCache();
517 const SrcMgr::ContentCache *
520 FakeContentCacheForRecovery = new ContentCache();
531 /// createFileID - Create a new FileID for the specified ContentCache and
532 /// include position. This works regardless of whether the ContentCache
534 FileID SourceManager::createFileID(const ContentCache *File,
612 const SrcMgr::ContentCache *IR = getOrCreateContentCache(File);
620 const SrcMgr::ContentCache *IR = getOrCreateContentCache(SourceFile);
623 const_cast<SrcMgr::ContentCache *>(IR)->replaceBuffer(Buffer, DoNotFree);
624 const_cast<SrcMgr::ContentCache *>(IR)->BufferOverridden = true;
1045 ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI,
1048 static void ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI,
1142 ContentCache *Content;
1154 Content = const_cast<ContentCache*>(Entry.getFile().getContentCache());
1337 const SrcMgr::ContentCache *C = FI.getContentCache();
1461 const ContentCache *MainContentCache
1535 const ContentCache *FileContentCache
1576 ContentCache *Content
1577 = const_cast<ContentCache *>(Entry.getFile().getContentCache());