diff --git a/lib/checktype.cpp b/lib/checktype.cpp index c4c434c33..b1aa3ddb5 100644 --- a/lib/checktype.cpp +++ b/lib/checktype.cpp @@ -242,9 +242,9 @@ void CheckType::checkSignConversion() if (!tok1) continue; const ValueFlow::Value* negativeValue = - ValueFlow::findValue(tok1->values(), mSettings, [&](const ValueFlow::Value& v) { - return !v.isImpossible() && v.isIntValue() && (v.intvalue <= -1 || v.wideintvalue <= -1); - }); + ValueFlow::findValue(tok1->values(), mSettings, [&](const ValueFlow::Value& v) { + return !v.isImpossible() && v.isIntValue() && (v.intvalue <= -1 || v.wideintvalue <= -1); + }); if (!negativeValue) continue; if (tok1->valueType() && tok1->valueType()->sign != ValueType::Sign::UNSIGNED) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 132336742..443de6266 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -6336,8 +6336,8 @@ static std::vector makeContainerSizeValue(const Token* tok, bo } static std::vector getInitListSize(const Token* tok, - const Library::Container* container, - bool known = true) + const Library::Container* container, + bool known = true) { std::vector args = getArguments(tok); // 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& values, - const Settings* settings, - std::function pred) + const Settings* settings, + std::function pred) { const ValueFlow::Value* ret = nullptr; for (const ValueFlow::Value& v : values) { diff --git a/lib/valueflow.h b/lib/valueflow.h index 38d53ae4c..069d7f89e 100644 --- a/lib/valueflow.h +++ b/lib/valueflow.h @@ -325,13 +325,13 @@ namespace ValueFlow { enum class LifetimeKind { // Pointer points to a member of lifetime - Object, + Object, // A member of object points to the lifetime - SubObject, + SubObject, // Lambda has captured lifetime(similiar to SubObject) - Lambda, + Lambda, // Iterator points to the lifetime of a container(similiar to Object) - Iterator, + Iterator, // A pointer that holds the address of the lifetime Address } lifetimeKind;