Lines Matching refs:ExpandedTokens

232   ExpandedTokIndex.reserve(ExpandedTokens.size());  in indexExpandedTokens()
234 for (size_t I = 0, E = ExpandedTokens.size(); I != E; ++I) { in indexExpandedTokens()
235 SourceLocation Loc = ExpandedTokens[I].location(); in indexExpandedTokens()
251 const Token *L = ExpandedTokens.data() + B->getSecond(); in expandedTokens()
253 const Token *R = ExpandedTokens.data() + E->getSecond() + 1; in expandedTokens()
273 assert(ExpandedTokens.data() <= Expanded && in spelledForExpandedToken()
274 Expanded < ExpandedTokens.data() + ExpandedTokens.size()); in spelledForExpandedToken()
282 unsigned ExpandedIndex = Expanded - ExpandedTokens.data(); in spelledForExpandedToken()
371 assert(ExpandedBegin < ExpandedTokens.size()); in expandedForSpelled()
372 assert(ExpandedEnd < ExpandedTokens.size()); in expandedForSpelled()
376 return {llvm::ArrayRef(ExpandedTokens.data() + ExpandedBegin, in expandedForSpelled()
377 ExpandedTokens.data() + ExpandedEnd)}; in expandedForSpelled()
433 SourceLocation Prev = (First == &ExpandedTokens.front()) in spelledForExpanded()
436 SourceLocation Next = (Last == &ExpandedTokens.back()) in spelledForExpanded()
448 unsigned FirstExpanded = Expanded.begin() - ExpandedTokens.data(); in spelledForExpanded()
449 unsigned LastExpanded = Expanded.end() - ExpandedTokens.data(); in spelledForExpanded()
466 E.Expanded = llvm::ArrayRef(ExpandedTokens.data() + M.BeginExpanded, in makeExpansion()
467 ExpandedTokens.data() + M.EndExpanded); in makeExpansion()
712 Result.ExpandedTokens = std::move(Expanded); in Builder()
716 assert(!Result.ExpandedTokens.empty()); in build()
717 assert(Result.ExpandedTokens.back().kind() == tok::eof); in build()
726 while (NextExpanded < Result.ExpandedTokens.size() - 1 /* eof */) { in build()
767 Result.ExpandedTokens[NextExpanded].location()); in discard()
812 const syntax::Token &Tok = Result.ExpandedTokens[NextExpanded]; in advance()
821 NextExpanded < Result.ExpandedTokens.size() && in advance()
823 Result.ExpandedTokens[NextExpanded].location()) { in advance()
842 while (NextExpanded < Result.ExpandedTokens.size() && in advance()
844 Result.ExpandedTokens[NextExpanded].location()) == Expansion) in advance()
858 I < NextExpanded + 5 && I < Result.ExpandedTokens.size(); ++I) { in diagnoseAdvanceFailure()
861 llvm::errs() << L << Result.ExpandedTokens[I].dumpForTests(SM) << "\n"; in diagnoseAdvanceFailure()
870 for (unsigned I = 0; I < Result.ExpandedTokens.size(); ++I) { in buildSpelledTokens()
871 const auto &Tok = Result.ExpandedTokens[I]; in buildSpelledTokens()
940 DumpTokens(OS, llvm::ArrayRef(ExpandedTokens).drop_back()); in dumpForTests()
971 M.EndSpelled, PrintToken(ExpandedTokens[M.BeginExpanded]), in dumpForTests()
972 M.BeginExpanded, PrintToken(ExpandedTokens[M.EndExpanded]), in dumpForTests()