Skip to content

Commit f57a633

Browse files
committed
Reviewer comments
1 parent 27282f2 commit f57a633

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/vf_analyzers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ ValuePtr<Analyzer> makeAnalyzer(const Token* exprTok, ValueFlow::Value value, co
16061606

16071607
ValuePtr<Analyzer> makeReverseAnalyzer(const Token* exprTok, ValueFlow::Value value, const Settings& settings)
16081608
{
1609-
value.setFlow(ValueFlow::Value::Flow::REVERSE);
1609+
value.setDirection(ValueFlow::Value::Direction::Reverse);
16101610
if (value.isContainerSizeValue())
16111611
return ContainerExpressionAnalyzer(exprTok, std::move(value), settings);
16121612
return ExpressionAnalyzer(exprTok, std::move(value), settings);

lib/vfvalue.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,19 @@ namespace ValueFlow
346346
};
347347
UnknownFunctionReturn unknownFunctionReturn{UnknownFunctionReturn::no};
348348

349-
enum class Flow : std::uint8_t {
350-
UNKNOWN,
351-
FORWARD,
352-
REVERSE
353-
} flow = Flow::UNKNOWN;
349+
enum class Direction : std::uint8_t {
350+
Unknown,
351+
Forward,
352+
Reverse
353+
} direction = Direction::Unknown;
354354
bool isReverse() const {
355-
return flow == Flow::REVERSE;
355+
return direction == Direction::Reverse;
356356
}
357-
void setFlow(Flow f) {
358-
flow = f;
357+
void setDirection(Direction d) {
358+
direction = d;
359359
}
360360

361-
long long : 16; // padding
361+
unsigned int : 16; // padding
362362

363363
/** Path id */
364364
MathLib::bigint path{};

0 commit comments

Comments
 (0)