/external/clang/include/clang/Basic/ |
D | SourceManager.h | 85 class LLVM_ALIGNAS(8) ContentCache { 142 ContentCache(const FileEntry *Ent = nullptr) : ContentCache(Ent, Ent) {} in ContentCache() function 144 ContentCache(const FileEntry *Ent, const FileEntry *contentEnt) in ContentCache() function 149 ~ContentCache(); 154 ContentCache(const ContentCache &RHS) in ContentCache() function 225 ContentCache &operator=(const ContentCache& RHS) = delete; 230 static_assert(llvm::AlignOf<ContentCache>::Alignment >= 8, 264 static FileInfo get(SourceLocation IL, const ContentCache *Con, in get() 279 const ContentCache* getContentCache() const { in getContentCache() 280 return reinterpret_cast<const ContentCache*>(Data & ~uintptr_t(7)); in getContentCache() [all …]
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 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() 379 MemBufferInfos[i]->~ContentCache(); in ~SourceManager() 383 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator in ~SourceManager() 386 I->second->~ContentCache(); in ~SourceManager() 414 const ContentCache * [all …]
|
/external/llvm-project/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 206 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM(""), nullptr); in TEST_F() 207 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM("\x00\x00\x00"), nullptr); in TEST_F() 208 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM("\xFF\xFF\xFF"), nullptr); in TEST_F() 209 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM("#include <iostream>"), in TEST_F() 212 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 215 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 218 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 221 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 224 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 227 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() [all …]
|
/external/llvm-project/clang/lib/Basic/ |
D | SourceManager.cpp | 54 unsigned ContentCache::getSizeBytesMapped() const { in getSizeBytesMapped() 60 llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const { in getMemoryBufferKind() 74 unsigned ContentCache::getSize() const { in getSize() 79 const char *ContentCache::getInvalidBOM(StringRef BufStr) { in getInvalidBOM() 103 ContentCache::getBufferOrNone(DiagnosticsEngine &Diag, FileManager &FM, in getBufferOrNone() 317 MemBufferInfos[i]->~ContentCache(); in ~SourceManager() 321 for (llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*>::iterator in ~SourceManager() 324 I->second->~ContentCache(); in ~SourceManager() 358 auto CloneContentCache = [&](const ContentCache *Cache) -> ContentCache * { in initializeForReplay() 359 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache; in initializeForReplay() [all …]
|
/external/llvm-project/clang/include/clang/Basic/ |
D | SourceManager.h | 128 class alignas(8) ContentCache { 179 ContentCache(const FileEntry *Ent = nullptr) : ContentCache(Ent, Ent) {} in ContentCache() function 181 ContentCache(const FileEntry *Ent, const FileEntry *contentEnt) in ContentCache() function 188 ContentCache(const ContentCache &RHS) in ContentCache() function 198 ContentCache &operator=(const ContentCache &RHS) = delete; 266 static_assert(alignof(ContentCache) >= 8, 302 llvm::PointerIntPair<const ContentCache *, 3, CharacteristicKind> 307 static FileInfo get(SourceLocation IL, ContentCache &Con, in get() 323 const ContentCache &getContentCache() const { in getContentCache() 641 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos; [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/ |
D | ExpandModularHeadersPPCallbacks.cpp | 35 const SrcMgr::ContentCache &ContentCache, in recordFileContent() argument 42 llvm::Optional<StringRef> Data = ContentCache.getBufferDataIfLoaded(); in recordFileContent()
|
/external/llvm/test/CodeGen/PowerPC/ |
D | BreakableToken-reduced.ll | 74 …lang::LineTableInfo"*, %"class.clang::FileID", %"class.clang::SrcMgr::ContentCache"*, i32, i32, %"… 132 %"struct.std::pair.68" = type { %"class.clang::FileEntry"*, %"class.clang::SrcMgr::ContentCache"* } 153 …pe { %"struct.std::_Vector_base<clang::SrcMgr::ContentCache *, std::allocator<clang::SrcMgr::Conte… 154 …ContentCache *, std::allocator<clang::SrcMgr::ContentCache *> >::_Vector_impl" = type { %"class.cl… 169 %"class.clang::SrcMgr::ContentCache" = type <{ %"class.llvm::PointerIntPair", %"class.clang::FileEn… 185 %"struct.std::_Head_base.134" = type { %"class.clang::SrcMgr::ContentCache"* }
|
/external/llvm-project/llvm/test/CodeGen/PowerPC/ |
D | BreakableToken-reduced.ll | 74 …lang::LineTableInfo"*, %"class.clang::FileID", %"class.clang::SrcMgr::ContentCache"*, i32, i32, %"… 132 %"struct.std::pair.68" = type { %"class.clang::FileEntry"*, %"class.clang::SrcMgr::ContentCache"* } 153 …pe { %"struct.std::_Vector_base<clang::SrcMgr::ContentCache *, std::allocator<clang::SrcMgr::Conte… 154 …ContentCache *, std::allocator<clang::SrcMgr::ContentCache *> >::_Vector_impl" = type { %"class.cl… 169 %"class.clang::SrcMgr::ContentCache" = type <{ %"class.llvm::PointerIntPair", %"class.clang::FileEn… 185 %"struct.std::_Head_base.134" = type { %"class.clang::SrcMgr::ContentCache"* }
|
/external/clang/lib/Rewrite/ |
D | Rewriter.cpp | 249 const SrcMgr::ContentCache * in InsertText() 353 const SrcMgr::ContentCache * in IncreaseIndentation()
|
/external/llvm-project/clang/lib/Rewrite/ |
D | Rewriter.cpp | 266 const SrcMgr::ContentCache *Content = in InsertText() 370 const SrcMgr::ContentCache *Content = in IncreaseIndentation()
|
/external/llvm-project/clang/tools/clang-format/ |
D | ClangFormat.cpp | 372 const char *InvalidBOM = SrcMgr::ContentCache::getInvalidBOM(BufStr); in format()
|
/external/clang/lib/Frontend/ |
D | CacheTokens.cpp | 508 const SrcMgr::ContentCache &C = *I->second; in GeneratePTH()
|
/external/clang/lib/Serialization/ |
D | ASTReader.cpp | 1294 const SrcMgr::ContentCache *ContentCache in ReadSLocEntry() local 1297 if (OverriddenBuffer && !ContentCache->BufferOverridden && in ReadSLocEntry() 1298 ContentCache->ContentsEntry == ContentCache->OrigEntry && in ReadSLocEntry() 1299 !ContentCache->getRawBuffer()) { in ReadSLocEntry()
|
D | ASTWriter.cpp | 1574 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache(); in WriteInputFiles() 1933 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache(); in WriteSourceManagerBlock() 1951 const SrcMgr::ContentCache *Content = File.getContentCache(); in WriteSourceManagerBlock()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTReader.cpp | 1535 const SrcMgr::ContentCache &ContentCache = in ReadSLocEntry() local 1537 if (OverriddenBuffer && !ContentCache.BufferOverridden && in ReadSLocEntry() 1538 ContentCache.ContentsEntry == ContentCache.OrigEntry && in ReadSLocEntry() 1539 !ContentCache.getBufferIfLoaded()) { in ReadSLocEntry()
|
D | ASTWriter.cpp | 1456 const SrcMgr::ContentCache *Cache = &File.getContentCache(); in WriteInputFiles() 1955 const SrcMgr::ContentCache *Cache = &SLoc->getFile().getContentCache(); in WriteSourceManagerBlock() 1973 const SrcMgr::ContentCache *Content = &File.getContentCache(); in WriteSourceManagerBlock()
|
/external/clang/lib/AST/ |
D | ASTImporter.cpp | 6413 const SrcMgr::ContentCache *Cache = FromSLoc.getFile().getContentCache(); in Import()
|
/external/llvm-project/clang/lib/AST/ |
D | ASTImporter.cpp | 8699 const SrcMgr::ContentCache *Cache = &FromSLoc.getFile().getContentCache(); in Import()
|