| 1556 | } |
| 1557 | |
| 1558 | void CheckUninitVarImpl::uninitvarError(const Token *tok, const std::string &varname, ErrorPath errorPath) |
| 1559 | { |
| 1560 | if (diag(tok)) |
| 1561 | return; |
| 1562 | errorPath.emplace_back(tok, ""); |
| 1563 | reportError(std::move(errorPath), |
| 1564 | Severity::error, |
| 1565 | "legacyUninitvar", |
| 1566 | "$symbol:" + varname + "\nUninitialized variable: $symbol", |
| 1567 | CWE_USE_OF_UNINITIALIZED_VARIABLE, |
| 1568 | Certainty::normal); |
| 1569 | } |
| 1570 | |
| 1571 | void CheckUninitVarImpl::uninitvarError(const Token* tok, const ValueFlow::Value& v) |
| 1572 | { |
no test coverage detected