| 146 | } |
| 147 | |
| 148 | void CheckStringImpl::alwaysTrueStringVariableCompareError(const Token *tok, const std::string& str1, const std::string& str2) |
| 149 | { |
| 150 | reportError(tok, Severity::warning, "stringCompare", |
| 151 | "Comparison of identical string variables.\n" |
| 152 | "The compared strings, '" + str1 + "' and '" + str2 + "', are identical. " |
| 153 | "This could be a logic bug.", CWE571, Certainty::normal); |
| 154 | } |
| 155 | |
| 156 | |
| 157 | //----------------------------------------------------------------------------- |
no test coverage detected