Fixed verbose messages in CheckOther::incorrectLogicOperatorError which didn't contain all information of the short message.
This commit is contained in:
parent
f75826c3e2
commit
3e03838025
|
@ -1371,10 +1371,12 @@ void CheckOther::incorrectLogicOperatorError(const Token *tok, const std::string
|
|||
if (always)
|
||||
reportError(tok, Severity::warning, "incorrectLogicOperator",
|
||||
"Logical disjunction always evaluates to true: " + condition + ".\n"
|
||||
"Logical disjunction always evaluates to true: " + condition + ". "
|
||||
"Are these conditions necessary? Did you intend to use && instead? Are the numbers correct? Are you comparing the correct variables?");
|
||||
else
|
||||
reportError(tok, Severity::warning, "incorrectLogicOperator",
|
||||
"Logical conjunction always evaluates to false: " + condition + ".\n"
|
||||
"Logical conjunction always evaluates to false: " + condition + ". "
|
||||
"Are these conditions necessary? Did you intend to use || instead? Are the numbers correct? Are you comparing the correct variables?");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue