Typos found by running "codespell" (#3324)
This commit is contained in:
parent
30af910b85
commit
fc90598077
|
@ -362,7 +362,7 @@ void CheckExceptionSafety::rethrowNoCurrentException()
|
||||||
|
|
||||||
// Rethrow can be used in 'exception dispatcher' idiom which is FP in such case
|
// Rethrow can be used in 'exception dispatcher' idiom which is FP in such case
|
||||||
// https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
|
// https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
|
||||||
// We check the beggining of the function with idiom pattern
|
// We check the beginning of the function with idiom pattern
|
||||||
if (Token::simpleMatch(function->functionScope->bodyStart->next(), "try { throw ; } catch ("))
|
if (Token::simpleMatch(function->functionScope->bodyStart->next(), "try { throw ; } catch ("))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -423,7 +423,7 @@ struct ForwardTraversal {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allAnalysis.isModified() || !forkContinue) {
|
if (allAnalysis.isModified() || !forkContinue) {
|
||||||
// TODO: Dont bail on missing condition
|
// TODO: Don't bail on missing condition
|
||||||
if (!condTok)
|
if (!condTok)
|
||||||
return Break(Analyzer::Terminate::Bail);
|
return Break(Analyzer::Terminate::Bail);
|
||||||
if (analyzer->isConditional() && stopUpdates())
|
if (analyzer->isConditional() && stopUpdates())
|
||||||
|
|
|
@ -1661,7 +1661,7 @@ void TokenList::validateAst() const
|
||||||
// Check for endless recursion
|
// Check for endless recursion
|
||||||
const Token* parent = tok->astParent();
|
const Token* parent = tok->astParent();
|
||||||
if (parent) {
|
if (parent) {
|
||||||
std::set < const Token* > astTokens; // list of anchestors
|
std::set < const Token* > astTokens; // list of ancestors
|
||||||
astTokens.insert(tok);
|
astTokens.insert(tok);
|
||||||
do {
|
do {
|
||||||
if (safeAstTokens.find(parent) != safeAstTokens.end())
|
if (safeAstTokens.find(parent) != safeAstTokens.end())
|
||||||
|
|
|
@ -6422,7 +6422,7 @@ static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
|
||||||
bool known = true)
|
bool known = true)
|
||||||
{
|
{
|
||||||
std::vector<const Token*> args = getArguments(tok);
|
std::vector<const Token*> args = getArguments(tok);
|
||||||
// Strings dont use an init list
|
// Strings don't use an init list
|
||||||
if (!args.empty() && container->stdStringLike) {
|
if (!args.empty() && container->stdStringLike) {
|
||||||
if (astIsIntegral(args[0], false)) {
|
if (astIsIntegral(args[0], false)) {
|
||||||
if (args.size() > 1)
|
if (args.size() > 1)
|
||||||
|
|
|
@ -328,9 +328,9 @@ namespace ValueFlow {
|
||||||
Object,
|
Object,
|
||||||
// A member of object points to the lifetime
|
// A member of object points to the lifetime
|
||||||
SubObject,
|
SubObject,
|
||||||
// Lambda has captured lifetime(similiar to SubObject)
|
// Lambda has captured lifetime(similar to SubObject)
|
||||||
Lambda,
|
Lambda,
|
||||||
// Iterator points to the lifetime of a container(similiar to Object)
|
// Iterator points to the lifetime of a container(similar to Object)
|
||||||
Iterator,
|
Iterator,
|
||||||
// A pointer that holds the address of the lifetime
|
// A pointer that holds the address of the lifetime
|
||||||
Address
|
Address
|
||||||
|
|
|
@ -3527,7 +3527,7 @@ private:
|
||||||
"}", settings);
|
"}", settings);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
// #3124 - multidimension array
|
// #3124 - multidimensional array
|
||||||
check("int main() {\n"
|
check("int main() {\n"
|
||||||
" char b[5][6];\n"
|
" char b[5][6];\n"
|
||||||
" mymemset(b, 0, 5 * 6);\n"
|
" mymemset(b, 0, 5 * 6);\n"
|
||||||
|
|
Loading…
Reference in New Issue