Skip to content

Commit 195d413

Browse files
committed
Running astyle [ci skip]
1 parent f90b05e commit 195d413

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

lib/checktype.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ void CheckType::checkSignConversion()
242242
if (!tok1)
243243
continue;
244244
const ValueFlow::Value* negativeValue =
245-
ValueFlow::findValue(tok1->values(), mSettings, [&](const ValueFlow::Value& v) {
246-
return !v.isImpossible() && v.isIntValue() && (v.intvalue <= -1 || v.wideintvalue <= -1);
247-
});
245+
ValueFlow::findValue(tok1->values(), mSettings, [&](const ValueFlow::Value& v) {
246+
return !v.isImpossible() && v.isIntValue() && (v.intvalue <= -1 || v.wideintvalue <= -1);
247+
});
248248
if (!negativeValue)
249249
continue;
250250
if (tok1->valueType() && tok1->valueType()->sign != ValueType::Sign::UNSIGNED)

lib/valueflow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6336,8 +6336,8 @@ static std::vector<ValueFlow::Value> makeContainerSizeValue(const Token* tok, bo
63366336
}
63376337

63386338
static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
6339-
const Library::Container* container,
6340-
bool known = true)
6339+
const Library::Container* container,
6340+
bool known = true)
63416341
{
63426342
std::vector<const Token*> args = getArguments(tok);
63436343
// Strings dont use an init list
@@ -7023,8 +7023,8 @@ std::string ValueFlow::eitherTheConditionIsRedundant(const Token *condition)
70237023
}
70247024

70257025
const ValueFlow::Value* ValueFlow::findValue(const std::list<ValueFlow::Value>& values,
7026-
const Settings* settings,
7027-
std::function<bool(const ValueFlow::Value&)> pred)
7026+
const Settings* settings,
7027+
std::function<bool(const ValueFlow::Value&)> pred)
70287028
{
70297029
const ValueFlow::Value* ret = nullptr;
70307030
for (const ValueFlow::Value& v : values) {

lib/valueflow.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,13 @@ namespace ValueFlow {
325325

326326
enum class LifetimeKind {
327327
// Pointer points to a member of lifetime
328-
Object,
328+
Object,
329329
// A member of object points to the lifetime
330-
SubObject,
330+
SubObject,
331331
// Lambda has captured lifetime(similiar to SubObject)
332-
Lambda,
332+
Lambda,
333333
// Iterator points to the lifetime of a container(similiar to Object)
334-
Iterator,
334+
Iterator,
335335
// A pointer that holds the address of the lifetime
336336
Address
337337
} lifetimeKind;

0 commit comments

Comments
 (0)