Typos found by running "codespell" (#3907)
Co-authored-by: Armin Müller <mueller.armin@foestergroup.de>
This commit is contained in:
parent
33315b0ae5
commit
7cc45fb393
|
@ -63,7 +63,7 @@ jobs:
|
|||
env:
|
||||
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)
|
||||
run: |
|
||||
mkdir cmake.output.notest
|
||||
|
|
|
@ -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> 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 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 ExecutionPolicy, class RandomIt, class Compare > void std::sort (ExecutionPolicy&& policy, RandomIt first, RandomIt last, Compare comp);(since C++17) -->
|
||||
<function name="std::sort">
|
||||
|
|
|
@ -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 &&
|
||||
std::any_of(mImpl->mValues->begin(), mImpl->mValues->end(), [&](const ValueFlow::Value& x) {
|
||||
return x.isKnown() && sameValueType(x, value) && !x.equalValue(value);
|
||||
|
|
|
@ -2859,7 +2859,7 @@ static const Token* solveExprValue(const Token* expr, ValueFlow::Value& value)
|
|||
MathLib::bigint intval;
|
||||
const Token* binaryTok = parseBinaryIntOp(expr, intval);
|
||||
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, "-"))
|
||||
return expr;
|
||||
if (binaryTok && expr->str().size() == 1) {
|
||||
|
@ -4264,7 +4264,7 @@ static void valueFlowLifetime(TokenList *tokenlist, SymbolDatabase*, ErrorLogger
|
|||
if (tok->scope()->type == Scope::eGlobal)
|
||||
continue;
|
||||
Lambda lam(tok);
|
||||
// Lamdas
|
||||
// Lambdas
|
||||
if (lam.isLambda()) {
|
||||
const Scope * bodyScope = lam.bodyTok->scope();
|
||||
|
||||
|
|
Loading…
Reference in New Issue