| 2506 | } |
| 2507 | |
| 2508 | static void invalidateInst(const Token* beg, const Token* end, std::vector<newInstantiation>* newInst) { |
| 2509 | if (!newInst) |
| 2510 | return; |
| 2511 | for (auto& inst : *newInst) { |
| 2512 | for (const Token* tok = beg; tok != end; tok = tok->next()) |
| 2513 | if (inst.token == tok) { |
| 2514 | inst.token = nullptr; |
| 2515 | break; |
| 2516 | } |
| 2517 | } |
| 2518 | } |
| 2519 | |
| 2520 | void TemplateSimplifier::simplifyTemplateArgs(Token *start, const Token *end, std::vector<newInstantiation>* newInst) |
| 2521 | { |
no test coverage detected