Lines Matching refs:Mapping
196 std::pair<const syntax::Token *, const TokenBuffer::Mapping *>
210 auto It = llvm::partition_point(File.Mappings, [&](const Mapping &M) { in spelledForExpandedToken()
232 const TokenBuffer::Mapping *
239 auto It = llvm::partition_point(F.Mappings, [SpelledI](const Mapping &M) { in mappingStartingBeforeSpelled()
322 std::string TokenBuffer::Mapping::str() const { in str()
336 const Mapping *BeginMapping; in spelledForExpanded()
341 const Mapping *LastMapping; in spelledForExpanded()
384 const Mapping &M) const { in makeExpansion()
418 auto M = llvm::partition_point(File.Mappings, [&](const Mapping &M) { in expansionStartingAt()
435 auto M = llvm::partition_point(File.Mappings, [&](const Mapping &M) { in expansionsOverlapping()
489 for (auto Mapping : File.Mappings) { in macroExpansions() local
490 const syntax::Token *Token = &Spelled[Mapping.BeginSpelled]; in macroExpansions()
667 assert(llvm::is_sorted(mappings, [](const TokenBuffer::Mapping &M1, in build()
668 const TokenBuffer::Mapping &M2) { in build()
694 TokenBuffer::Mapping Mapping; in discard() local
695 Mapping.BeginSpelled = NextSpelled; in discard()
698 Mapping.BeginExpanded = Mapping.EndExpanded = in discard()
703 Mapping.EndSpelled = NextSpelled; in discard()
704 if (Mapping.BeginSpelled != Mapping.EndSpelled) in discard()
705 Result.Files[File].Mappings.push_back(Mapping); in discard()
706 Mapping.BeginSpelled = NextSpelled; in discard()
756 TokenBuffer::Mapping Mapping; in advance() local
757 Mapping.BeginExpanded = NextExpanded; in advance()
758 Mapping.BeginSpelled = NextSpelled; in advance()
769 Mapping.EndExpanded = NextExpanded; in advance()
770 Mapping.EndSpelled = NextSpelled; in advance()
771 Result.Files[File].Mappings.push_back(Mapping); in advance()