| 1385 | } |
| 1386 | |
| 1387 | void CheckConditionImpl::redundantConditionError(const Token *tok, const std::string &text, bool inconclusive) |
| 1388 | { |
| 1389 | if (diag(tok)) |
| 1390 | return; |
| 1391 | reportError(tok, Severity::style, "redundantCondition", "Redundant condition: " + text, CWE398, inconclusive ? Certainty::inconclusive : Certainty::normal); |
| 1392 | } |
| 1393 | |
| 1394 | //----------------------------------------------------------------------------- |
| 1395 | // Detect "(var % val1) > val2" where val2 is >= val1. |
no test coverage detected