Spell checks

This commit is contained in:
Stefan Weil 2011-03-30 16:44:16 +02:00 committed by Daniel Marjamäki
parent ce934f03a4
commit 0e4cf7a2d6
3 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ void CheckOther::clarifyCalculationError(const Token *tok)
Severity::style,
"clarifyCalculation",
"Please clarify precedence: 'a*b?..'\n"
"Found a suspicious multiplication of condition. Please use parantheses to clarify the code. "
"Found a suspicious multiplication of condition. Please use parentheses to clarify the code. "
"The code 'a*b?1:2' should be written as either '(a*b)?1:2' or 'a*(b?1:2)'.");
}
@ -156,7 +156,7 @@ void CheckOther::clarifyConditionError(const Token *tok)
reportError(tok,
Severity::style,
"clarifyCondition",
"Suspicious condition (assignment+comparison), it can be clarified with parantheses");
"Suspicious condition (assignment+comparison), it can be clarified with parentheses");
}

View File

@ -313,7 +313,7 @@ public:
"* assignment of a variable to itself\n"
"* mutual exclusion over || always evaluating to true\n"
"* exception caught by value instead of by reference\n"
"* Clarify calculation with parantheses\n"
"* Clarify calculation with parentheses\n"
"* using increment on boolean\n"
"* comparison of a boolean with a non-zero integer\n"
"* suspicious condition (assignment+comparison)"

View File

@ -2294,7 +2294,7 @@ private:
check("void f() {\n"
" if (x = b() < 0) {}\n"
"}");
ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (assignment+comparison), it can be clarified with parantheses\n", errout.str());
ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses\n", errout.str());
}
void incorrectStringCompare()