Lines Matching refs:ExpandedTokens
199 assert(ExpandedTokens.data() <= Expanded && in spelledForExpandedToken()
200 Expanded < ExpandedTokens.data() + ExpandedTokens.size()); in spelledForExpandedToken()
208 unsigned ExpandedIndex = Expanded - ExpandedTokens.data(); in spelledForExpandedToken()
297 assert(ExpandedBegin < ExpandedTokens.size()); in expandedForSpelled()
298 assert(ExpandedEnd < ExpandedTokens.size()); in expandedForSpelled()
302 return {llvm::makeArrayRef(ExpandedTokens.data() + ExpandedBegin, in expandedForSpelled()
303 ExpandedTokens.data() + ExpandedEnd)}; in expandedForSpelled()
369 unsigned BeginExpanded = Expanded.begin() - ExpandedTokens.data(); in spelledForExpanded()
370 unsigned EndExpanded = Expanded.end() - ExpandedTokens.data(); in spelledForExpanded()
388 E.Expanded = llvm::makeArrayRef(ExpandedTokens.data() + M.BeginExpanded, in makeExpansion()
389 ExpandedTokens.data() + M.EndExpanded); in makeExpansion()
634 Result.ExpandedTokens = std::move(Expanded); in Builder()
638 assert(!Result.ExpandedTokens.empty()); in build()
639 assert(Result.ExpandedTokens.back().kind() == tok::eof); in build()
648 while (NextExpanded < Result.ExpandedTokens.size() - 1 /* eof */) { in build()
689 Result.ExpandedTokens[NextExpanded].location()); in discard()
734 const syntax::Token &Tok = Result.ExpandedTokens[NextExpanded]; in advance()
743 NextExpanded < Result.ExpandedTokens.size() && in advance()
745 Result.ExpandedTokens[NextExpanded].location()) { in advance()
764 while (NextExpanded < Result.ExpandedTokens.size() && in advance()
766 Result.ExpandedTokens[NextExpanded].location()) == Expansion) in advance()
780 I < NextExpanded + 5 && I < Result.ExpandedTokens.size(); ++I) { in diagnoseAdvanceFailure()
783 llvm::errs() << L << Result.ExpandedTokens[I].dumpForTests(SM) << "\n"; in diagnoseAdvanceFailure()
792 for (unsigned I = 0; I < Result.ExpandedTokens.size(); ++I) { in buildSpelledTokens()
793 const auto &Tok = Result.ExpandedTokens[I]; in buildSpelledTokens()
862 DumpTokens(OS, llvm::makeArrayRef(ExpandedTokens).drop_back()); in dumpForTests()
893 M.EndSpelled, PrintToken(ExpandedTokens[M.BeginExpanded]), in dumpForTests()
894 M.BeginExpanded, PrintToken(ExpandedTokens[M.EndExpanded]), in dumpForTests()