| 1246 | } |
| 1247 | |
| 1248 | static void followVariableExpressionError(const Token *tok1, const Token *tok2, ErrorPath* errors) |
| 1249 | { |
| 1250 | if (!errors) |
| 1251 | return; |
| 1252 | if (!tok1) |
| 1253 | return; |
| 1254 | if (!tok2) |
| 1255 | return; |
| 1256 | ErrorPathItem item = std::make_pair(tok2, "'" + tok1->str() + "' is assigned value '" + tok2->expressionString() + "' here."); |
| 1257 | if (std::find(errors->cbegin(), errors->cend(), item) != errors->cend()) |
| 1258 | return; |
| 1259 | errors->push_back(std::move(item)); |
| 1260 | } |
| 1261 | |
| 1262 | static SmallVector<ReferenceToken> followAllReferencesInternal(const Token* tok, |
| 1263 | bool temporary = true, |
no test coverage detected