Lines Matching full:replacements
226 ASSERT(context->replacements[context->index] == token); in ungetToken()
253 std::vector<Token> replacements; in pushMacro() local
254 if (!expandMacro(*macro, identifier, &replacements)) in pushMacro()
262 context->replacements.swap(replacements); in pushMacro()
264 mTotalTokensInContexts += context->replacements.size(); in pushMacro()
287 mTotalTokensInContexts -= context->replacements.size(); in popMacro()
293 std::vector<Token> *replacements) in expandMacro() argument
295 replacements->clear(); in expandMacro()
304 replacements->assign(macro.replacements.begin(), macro.replacements.end()); in expandMacro()
311 ASSERT(replacements->size() == 1); in expandMacro()
312 Token &repl = replacements->front(); in expandMacro()
331 replaceMacroParams(macro, args, replacements); in expandMacro()
334 for (std::size_t i = 0; i < replacements->size(); ++i) in expandMacro()
336 Token &repl = replacements->at(i); in expandMacro()
465 std::vector<Token> *replacements) in replaceMacroParams() argument
467 for (std::size_t i = 0; i < macro.replacements.size(); ++i) in replaceMacroParams()
469 if (!replacements->empty() && in replaceMacroParams()
470 replacements->size() + mTotalTokensInContexts > kMaxContextTokens) in replaceMacroParams()
472 const Token &token = replacements->back(); in replaceMacroParams()
477 const Token &repl = macro.replacements[i]; in replaceMacroParams()
480 replacements->push_back(repl); in replaceMacroParams()
491 replacements->push_back(repl); in replaceMacroParams()
501 std::size_t iRepl = replacements->size(); in replaceMacroParams()
502 replacements->insert(replacements->end(), arg.begin(), arg.end()); in replaceMacroParams()
505 replacements->at(iRepl).setHasLeadingSpace(repl.hasLeadingSpace()); in replaceMacroParams()
515 return index == replacements.size(); in empty()
520 return replacements[index++]; in get()