Running astyle [ci skip]

This commit is contained in:
orbitcowboy 2021-06-05 08:53:15 +02:00
parent f90b05ea7c
commit 195d413986
3 changed files with 11 additions and 11 deletions

View File

@ -242,9 +242,9 @@ void CheckType::checkSignConversion()
if (!tok1) if (!tok1)
continue; continue;
const ValueFlow::Value* negativeValue = const ValueFlow::Value* negativeValue =
ValueFlow::findValue(tok1->values(), mSettings, [&](const ValueFlow::Value& v) { ValueFlow::findValue(tok1->values(), mSettings, [&](const ValueFlow::Value& v) {
return !v.isImpossible() && v.isIntValue() && (v.intvalue <= -1 || v.wideintvalue <= -1); return !v.isImpossible() && v.isIntValue() && (v.intvalue <= -1 || v.wideintvalue <= -1);
}); });
if (!negativeValue) if (!negativeValue)
continue; continue;
if (tok1->valueType() && tok1->valueType()->sign != ValueType::Sign::UNSIGNED) if (tok1->valueType() && tok1->valueType()->sign != ValueType::Sign::UNSIGNED)

View File

@ -6336,8 +6336,8 @@ static std::vector<ValueFlow::Value> makeContainerSizeValue(const Token* tok, bo
} }
static std::vector<ValueFlow::Value> getInitListSize(const Token* tok, static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
const Library::Container* container, const Library::Container* container,
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 dont use an init list
@ -7023,8 +7023,8 @@ std::string ValueFlow::eitherTheConditionIsRedundant(const Token *condition)
} }
const ValueFlow::Value* ValueFlow::findValue(const std::list<ValueFlow::Value>& values, const ValueFlow::Value* ValueFlow::findValue(const std::list<ValueFlow::Value>& values,
const Settings* settings, const Settings* settings,
std::function<bool(const ValueFlow::Value&)> pred) std::function<bool(const ValueFlow::Value&)> pred)
{ {
const ValueFlow::Value* ret = nullptr; const ValueFlow::Value* ret = nullptr;
for (const ValueFlow::Value& v : values) { for (const ValueFlow::Value& v : values) {

View File

@ -325,13 +325,13 @@ namespace ValueFlow {
enum class LifetimeKind { enum class LifetimeKind {
// Pointer points to a member of lifetime // Pointer points to a member of lifetime
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(similiar to SubObject)
Lambda, Lambda,
// Iterator points to the lifetime of a container(similiar to Object) // Iterator points to the lifetime of a container(similiar to Object)
Iterator, Iterator,
// A pointer that holds the address of the lifetime // A pointer that holds the address of the lifetime
Address Address
} lifetimeKind; } lifetimeKind;