| 96 | } |
| 97 | |
| 98 | TemplateSimplifier::TokenAndName::TokenAndName(Token *token, std::string scope) : |
| 99 | mToken(token), mScope(std::move(scope)), mName(mToken ? mToken->str() : ""), |
| 100 | mFullName(mScope.empty() ? mName : (mScope + " :: " + mName)), |
| 101 | mNameToken(nullptr), mParamEnd(nullptr), mFlags(0) |
| 102 | { |
| 103 | if (mToken) { |
| 104 | if (mToken->strAt(1) == "<") { |
| 105 | const Token *end = mToken->next()->findClosingBracket(); |
| 106 | if (end && end->strAt(1) == "(") { |
| 107 | isFunction(true); |
| 108 | } |
| 109 | } |
| 110 | mToken->templateSimplifierPointer(this); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | TemplateSimplifier::TokenAndName::TokenAndName(Token *token, std::string scope, const Token *nameToken, const Token *paramEnd) : |
| 115 | mToken(token), mScope(std::move(scope)), mName(nameToken->str()), |
nothing calls this directly
no test coverage detected