Typos found by running "codespell" (#3907)

Co-authored-by: Armin Müller <mueller.armin@foestergroup.de>
This commit is contained in:
Armin Müller 2022-03-16 15:28:44 +01:00 committed by GitHub
parent 33315b0ae5
commit 7cc45fb393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@ jobs:
env: env:
DISABLE_VALUEFLOW: 1 DISABLE_VALUEFLOW: 1
# the following steps are duplicated from above since setting up the buld node in a parallel step takes longer than the actual steps # the following steps are duplicated from above since setting up the build node in a parallel step takes longer than the actual steps
- name: CMake (no test) - name: CMake (no test)
run: | run: |
mkdir cmake.output.notest mkdir cmake.output.notest

View File

@ -7317,7 +7317,7 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<!-- template <class RandomAccessIterator> void std::sort (RandomAccessIterator first, RandomAccessIterator last); (until C++20) --> <!-- template <class RandomAccessIterator> void std::sort (RandomAccessIterator first, RandomAccessIterator last); (until C++20) -->
<!-- template <class RandomAccessIterator> constexpr void std::sort (RandomAccessIterator first, RandomAccessIterator last); (since C++20) --> <!-- template <class RandomAccessIterator> constexpr void std::sort (RandomAccessIterator first, RandomAccessIterator last); (since C++20) -->
<!-- @todo: template< class ExecutionPolicy, class RandomIt > void std::sort (ExecutionPolicy&& policy, RandomIt first, RandomIt last); (since C++17) --> <!-- @todo: template< class ExecutionPolicy, class RandomIt > void std::sort (ExecutionPolicy&& policy, RandomIt first, RandomIt last); (since C++17) -->
<!-- @todo: template< class RandomIt, class Compare > void std::sort (RandomIt first, RandomIt last, Compare comp); (unitl C++17) --> <!-- @todo: template< class RandomIt, class Compare > void std::sort (RandomIt first, RandomIt last, Compare comp); (until C++17) -->
<!-- @todo: template< class RandomIt, class Compare > constexpr void std::sort (RandomIt first, RandomIt last, Compare comp); (since C++20) --> <!-- @todo: template< class RandomIt, class Compare > constexpr void std::sort (RandomIt first, RandomIt last, Compare comp); (since C++20) -->
<!-- @todo: template< class ExecutionPolicy, class RandomIt, class Compare > void std::sort (ExecutionPolicy&& policy, RandomIt first, RandomIt last, Compare comp);(since C++17) --> <!-- @todo: template< class ExecutionPolicy, class RandomIt, class Compare > void std::sort (ExecutionPolicy&& policy, RandomIt first, RandomIt last, Compare comp);(since C++17) -->
<function name="std::sort"> <function name="std::sort">

View File

@ -2133,7 +2133,7 @@ bool Token::addValue(const ValueFlow::Value &value)
}); });
} }
// Dont add a value if its already known // Don't add a value if its already known
if (!value.isKnown() && mImpl->mValues && if (!value.isKnown() && mImpl->mValues &&
std::any_of(mImpl->mValues->begin(), mImpl->mValues->end(), [&](const ValueFlow::Value& x) { std::any_of(mImpl->mValues->begin(), mImpl->mValues->end(), [&](const ValueFlow::Value& x) {
return x.isKnown() && sameValueType(x, value) && !x.equalValue(value); return x.isKnown() && sameValueType(x, value) && !x.equalValue(value);

View File

@ -2859,7 +2859,7 @@ static const Token* solveExprValue(const Token* expr, ValueFlow::Value& value)
MathLib::bigint intval; MathLib::bigint intval;
const Token* binaryTok = parseBinaryIntOp(expr, intval); const Token* binaryTok = parseBinaryIntOp(expr, intval);
bool rhs = astIsRHS(binaryTok); bool rhs = astIsRHS(binaryTok);
// If its on the rhs, then -1 multipllication is needed, which is not possible with simple delta analysis used currentl for symbolic values // If its on the rhs, then -1 multiplication is needed, which is not possible with simple delta analysis used currently for symbolic values
if (value.isSymbolicValue() && rhs && Token::simpleMatch(expr, "-")) if (value.isSymbolicValue() && rhs && Token::simpleMatch(expr, "-"))
return expr; return expr;
if (binaryTok && expr->str().size() == 1) { if (binaryTok && expr->str().size() == 1) {
@ -4264,7 +4264,7 @@ static void valueFlowLifetime(TokenList *tokenlist, SymbolDatabase*, ErrorLogger
if (tok->scope()->type == Scope::eGlobal) if (tok->scope()->type == Scope::eGlobal)
continue; continue;
Lambda lam(tok); Lambda lam(tok);
// Lamdas // Lambdas
if (lam.isLambda()) { if (lam.isLambda()) {
const Scope * bodyScope = lam.bodyTok->scope(); const Scope * bodyScope = lam.bodyTok->scope();