c2c/Clang/SourceManager.cpp
/// Create a new ContentCache for the specified memory buffer.
/// This does no caching.
Create a new ContentCache for the specified memory buffer.
This does no caching.
Create a new ContentCache for the specified memory buffer . This does no caching .
const ContentCache *
SourceManager::createMemBufferContentCache(llvm::MemoryBuffer *Buffer,
                                           bool DoNotFree) {
  ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>();
  new (Entry) ContentCache();
  MemBufferInfos.push_back(Entry);
  Entry->replaceBuffer(Buffer, DoNotFree);
  return Entry;
}
const ContentCache * SourceManager :: createMemBufferContentCache ( llvm :: MemoryBuffer * Buffer , bool DoNotFree ) { ContentCache * Entry = ContentCacheAlloc . Allocate < ContentCache > ( ) ; new ( Entry ) ContentCache ( ) ; MemBufferInfos . push_back ( Entry ) ; Entry -> replaceBuffer ( Buffer , DoNotFree ) ; return Entry ; }
Create a new ContentCache for the specified memory buffer.
Create a new ContentCache for the specified memory buffer .
// Add a new ContentCache to the MemBufferInfos list and return it.