Lines Matching full:mappings
284 auto It = llvm::partition_point(File.Mappings, [&](const Mapping &M) { in spelledForExpandedToken()
288 if (It == File.Mappings.begin()) { in spelledForExpandedToken()
313 auto It = llvm::partition_point(F.Mappings, [SpelledI](const Mapping &M) { in mappingStartingBeforeSpelled()
316 if (It == F.Mappings.begin()) in mappingStartingBeforeSpelled()
346 // between 2 mappings, or between a mapping and end of the file). in expandedForSpelled()
411 // Mapping an empty range is ambiguous in case of empty mappings at either end in spelledForExpanded()
446 // Otherwise, use the fast version based on Mappings. in spelledForExpanded()
496 auto M = llvm::partition_point(File.Mappings, [&](const Mapping &M) { in expansionStartingAt()
499 if (M == File.Mappings.end() || M->BeginSpelled != SpelledIndex) in expansionStartingAt()
513 auto M = llvm::partition_point(File.Mappings, [&](const Mapping &M) { in expansionsOverlapping()
517 for (; M != File.Mappings.end() && M->BeginSpelled < SpelledEndIndex; ++M) in expansionsOverlapping()
567 for (auto Mapping : File.Mappings) { in macroExpansions()
613 /// Records information reqired to construct mappings for the token buffer that
639 // from an expansion. The best we can do is merge the mappings for both. in MacroExpands()
675 /// - records mappings from the spelled to expanded token ranges, e.g. for macro
704 /// Builds mappings and spelled tokens in the TokenBuffer based on the expanded
727 // Create empty mappings for spelled tokens that expanded to nothing here. in build()
738 // Create empty mappings up until the end of the file. in build()
744 auto &mappings = pair.second.Mappings; in build() local
745 assert(llvm::is_sorted(mappings, [](const TokenBuffer::Mapping &M1, in build()
778 // We may want to split into several adjacent empty mappings. in discard()
783 Result.Files[File].Mappings.push_back(Mapping); in discard()
849 Result.Files[File].Mappings.push_back(Mapping); in advance()
959 if (File.Mappings.empty()) { in dumpForTests()
960 OS << " no mappings.\n"; in dumpForTests()
963 OS << " mappings:\n"; in dumpForTests()
964 for (auto &M : File.Mappings) { in dumpForTests()