parent
ce1fc56e96
commit
31bddb6ae0
|
@ -5002,7 +5002,7 @@
|
|||
</access>
|
||||
</container>
|
||||
<!-- Treat QStringList as QList<QString> since we can't remove the template parameter when we inherit. -->
|
||||
<define name="QStringList" value="QList<QString>" />
|
||||
<define name="QStringList" value="QList<QString>"/>
|
||||
<define name="Q_ARG(type, data)" value="QArgument<type >(#type, data)"/>
|
||||
<!-- TODO: Enable when ticket 8479 got fixed
|
||||
<define name="Q_D(Class)" value="Class##Private * const d = d_func()"/>
|
||||
|
|
|
@ -674,7 +674,8 @@ void CheckStl::mismatchingContainers()
|
|||
|
||||
// Lambda is used to escape the nested loops
|
||||
[&] {
|
||||
for (const auto& p : containers) {
|
||||
for (const auto& p : containers)
|
||||
{
|
||||
const std::vector<ArgIteratorInfo>& cargs = p.second;
|
||||
for (ArgIteratorInfo iter1 : cargs) {
|
||||
for (ArgIteratorInfo iter2 : cargs) {
|
||||
|
|
|
@ -4561,7 +4561,7 @@ static const ValueFlow::Value* getCompareIntValue(const std::list<ValueFlow::Val
|
|||
static const ValueFlow::Value* proveLessThan(const std::list<ValueFlow::Value>& values, MathLib::bigint x)
|
||||
{
|
||||
const ValueFlow::Value* result = nullptr;
|
||||
const ValueFlow::Value* maxValue = getCompareIntValue(values, std::greater<MathLib::bigint>{});
|
||||
const ValueFlow::Value* maxValue = getCompareIntValue(values, std::greater<MathLib::bigint> {});
|
||||
if (maxValue && maxValue->isImpossible() && maxValue->bound == ValueFlow::Value::Bound::Lower) {
|
||||
if (maxValue->intvalue <= x)
|
||||
result = maxValue;
|
||||
|
@ -4572,7 +4572,7 @@ static const ValueFlow::Value* proveLessThan(const std::list<ValueFlow::Value>&
|
|||
static const ValueFlow::Value* proveGreaterThan(const std::list<ValueFlow::Value>& values, MathLib::bigint x)
|
||||
{
|
||||
const ValueFlow::Value* result = nullptr;
|
||||
const ValueFlow::Value* minValue = getCompareIntValue(values, std::less<MathLib::bigint>{});
|
||||
const ValueFlow::Value* minValue = getCompareIntValue(values, std::less<MathLib::bigint> {});
|
||||
if (minValue && minValue->isImpossible() && minValue->bound == ValueFlow::Value::Bound::Upper) {
|
||||
if (minValue->intvalue >= x)
|
||||
result = minValue;
|
||||
|
|
Loading…
Reference in New Issue