| 2085 | } |
| 2086 | |
| 2087 | void CheckConditionImpl::compareValueOutOfTypeRangeError(const Token *comparisonTok, const std::string &type, MathLib::bigint value, bool result) |
| 2088 | { |
| 2089 | reportError( |
| 2090 | comparisonTok, |
| 2091 | Severity::style, |
| 2092 | "compareValueOutOfTypeRangeError", |
| 2093 | "Comparing expression of type '" + type + "' against value " + MathLib::toString(value) + ". Condition is always " + bool_to_string(result) + ".", |
| 2094 | CWE398, |
| 2095 | Certainty::normal); |
| 2096 | } |
| 2097 | |
| 2098 | void CheckCondition::runChecks(const Tokenizer &tokenizer, ErrorLogger& errorLogger) |
| 2099 | { |
no test coverage detected