fix a few typos

This commit is contained in:
Matthias Krüger 2018-05-14 13:11:45 +02:00
parent 4b873ed573
commit 4c8bb9ac6f
4 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ def checkstatic(data):
else:
type = 'variable'
if var.isConst:
reportError(var.typeStartToken, 'warning', 'Local constant static ' + type + ' \'' + var.nameToken.str + '\', dangerous if it is initialized in parallell threads', 'threadsafety')
reportError(var.typeStartToken, 'warning', 'Local constant static ' + type + ' \'' + var.nameToken.str + '\', dangerous if it is initialized in parallel threads', 'threadsafety')
else:
reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety')

View File

@ -248,7 +248,7 @@ static bool isOperatorFunction(const std::string & funcName)
* Conversion functions must be a member function (at least for gcc), so no
* need to cover them for unused functions.
*
* To speed up the comparision, not the whole list of operators is used.
* To speed up the comparison, not the whole list of operators is used.
* Instead only the character after the operator prefix is checked to be a
* none alpa numeric value, but the '_', to cover function names like
* "operator_unused". In addition the following valid operators are checked:

View File

@ -4042,7 +4042,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
checkVariableCallMatch(callarg, funcarg, same, fallback1, fallback2);
}
// check for a match with refrence of a variable
// check for a match with reference of a variable
else if (Token::Match(arguments[j], "* %var% ,|)")) {
const Variable * callarg = check->getVariableFromVarId(arguments[j]->next()->varId());
if (callarg) {

View File

@ -555,7 +555,7 @@ There are false positives with this option. Each result must be carefully invest
</refsect1>
<refsect1 id="see_also">
<title>SEE ALSO</title>
<!-- In alpabetical order. -->
<!-- In alphabetical order. -->
<para>Full list of features: http://cppcheck.wiki.sourceforge.net/</para>
</refsect1>
</refentry>