MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / invalidateInst

Function invalidateInst

lib/templatesimplifier.cpp:2508–2518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2506}
2507
2508static 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
2520void TemplateSimplifier::simplifyTemplateArgs(Token *start, const Token *end, std::vector<newInstantiation>* newInst)
2521{

Callers 1

simplifyTemplateArgsMethod · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected