Searched refs:ContentCache (Results 1 – 10 of 10) sorted by relevance
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | SourceManagerTest.cpp | 273 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM(""), nullptr); in TEST_F() 279 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 282 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 285 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 288 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 291 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 294 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 297 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 300 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() 303 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | SourceManager.h | 129 class alignas(8) ContentCache { 180 ContentCache(const FileEntry *Ent = nullptr) : ContentCache(Ent, Ent) {} in ContentCache() function 182 ContentCache(const FileEntry *Ent, const FileEntry *contentEnt) in ContentCache() function 189 ContentCache(const ContentCache &RHS) in ContentCache() function 199 ContentCache &operator=(const ContentCache &RHS) = delete; 267 static_assert(alignof(ContentCache) >= 8, 308 static FileInfo get(SourceLocation IL, ContentCache &Con, in get() 324 const ContentCache &getContentCache() const { in getContentCache() 679 std::vector<SrcMgr::ContentCache*> MemBufferInfos; 732 mutable const SrcMgr::ContentCache *LastLineNoContentCache; [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 73 unsigned ContentCache::getSize() const { in getSize() 323 MemBufferInfos[i]->~ContentCache(); in ~SourceManager() 330 I->second->~ContentCache(); in ~SourceManager() 364 auto CloneContentCache = [&](const ContentCache *Cache) -> ContentCache * { in initializeForReplay() 365 auto *Clone = new (ContentCacheAlloc.Allocate<ContentCache>()) ContentCache; in initializeForReplay() 392 ContentCache *&Entry = FileInfos[FileEnt]; in getOrCreateContentCache() 405 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache() 411 new (Entry) ContentCache(FileEnt); in getOrCreateContentCache() 426 ContentCache *Entry = ContentCacheAlloc.Allocate<ContentCache>(); in createMemBufferContentCache() 427 new (Entry) ContentCache(); in createMemBufferContentCache() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ExpandModularHeadersPPCallbacks.cpp | 35 const SrcMgr::ContentCache &ContentCache, in recordFileContent() argument 42 llvm::Optional<StringRef> Data = ContentCache.getBufferDataIfLoaded(); in recordFileContent()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A 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"* }
|
| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 267 const SrcMgr::ContentCache *Content = in InsertText() 371 const SrcMgr::ContentCache *Content = in IncreaseIndentation()
|
| /llvm-project-15.0.7/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 420 const char *InvalidBOM = SrcMgr::ContentCache::getInvalidBOM(BufStr); in format()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 1586 const SrcMgr::ContentCache &ContentCache = in ReadSLocEntry() local 1588 if (OverriddenBuffer && !ContentCache.BufferOverridden && in ReadSLocEntry() 1589 ContentCache.ContentsEntry == ContentCache.OrigEntry && in ReadSLocEntry() 1590 !ContentCache.getBufferIfLoaded()) { in ReadSLocEntry()
|
| H A D | ASTWriter.cpp | 1553 const SrcMgr::ContentCache *Cache = &File.getContentCache(); in WriteInputFiles() 2062 const SrcMgr::ContentCache *Cache = &SLoc->getFile().getContentCache(); in WriteSourceManagerBlock() 2076 const SrcMgr::ContentCache *Content = &File.getContentCache(); in WriteSourceManagerBlock()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTImporter.cpp | 9378 const SrcMgr::ContentCache *Cache = &FromSLoc.getFile().getContentCache(); in Import()
|