fix a few typos
This commit is contained in:
parent
4b873ed573
commit
4c8bb9ac6f
|
@ -22,7 +22,7 @@ def checkstatic(data):
|
||||||
else:
|
else:
|
||||||
type = 'variable'
|
type = 'variable'
|
||||||
if var.isConst:
|
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:
|
else:
|
||||||
reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety')
|
reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety')
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,7 @@ static bool isOperatorFunction(const std::string & funcName)
|
||||||
* Conversion functions must be a member function (at least for gcc), so no
|
* Conversion functions must be a member function (at least for gcc), so no
|
||||||
* need to cover them for unused functions.
|
* 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
|
* Instead only the character after the operator prefix is checked to be a
|
||||||
* none alpa numeric value, but the '_', to cover function names like
|
* none alpa numeric value, but the '_', to cover function names like
|
||||||
* "operator_unused". In addition the following valid operators are checked:
|
* "operator_unused". In addition the following valid operators are checked:
|
||||||
|
|
|
@ -4042,7 +4042,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
|
||||||
checkVariableCallMatch(callarg, funcarg, same, fallback1, fallback2);
|
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% ,|)")) {
|
else if (Token::Match(arguments[j], "* %var% ,|)")) {
|
||||||
const Variable * callarg = check->getVariableFromVarId(arguments[j]->next()->varId());
|
const Variable * callarg = check->getVariableFromVarId(arguments[j]->next()->varId());
|
||||||
if (callarg) {
|
if (callarg) {
|
||||||
|
|
|
@ -555,7 +555,7 @@ There are false positives with this option. Each result must be carefully invest
|
||||||
</refsect1>
|
</refsect1>
|
||||||
<refsect1 id="see_also">
|
<refsect1 id="see_also">
|
||||||
<title>SEE ALSO</title>
|
<title>SEE ALSO</title>
|
||||||
<!-- In alpabetical order. -->
|
<!-- In alphabetical order. -->
|
||||||
<para>Full list of features: http://cppcheck.wiki.sourceforge.net/</para>
|
<para>Full list of features: http://cppcheck.wiki.sourceforge.net/</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
</refentry>
|
</refentry>
|
||||||
|
|
Loading…
Reference in New Issue