| 711 | } |
| 712 | |
| 713 | void TemplateSimplifier::addInstantiation(Token *token, const std::string &scope) |
| 714 | { |
| 715 | simplifyTemplateArgs(token->tokAt(2), token->next()->findClosingBracket()); |
| 716 | |
| 717 | TokenAndName instantiation(token, scope); |
| 718 | |
| 719 | // check if instantiation already exists before adding it |
| 720 | const auto it = std::find(mTemplateInstantiations.cbegin(), |
| 721 | mTemplateInstantiations.cend(), |
| 722 | instantiation); |
| 723 | |
| 724 | if (it == mTemplateInstantiations.cend()) |
| 725 | mTemplateInstantiations.emplace_back(std::move(instantiation)); |
| 726 | } |
| 727 | |
| 728 | static const Token* getFunctionToken(const Token* nameToken) |
| 729 | { |
nothing calls this directly
no test coverage detected