81 if (this->intvalue > 0)
83 else if (this->intvalue < 0)
89 for (
int i = 0; i < this->
indirect; i++)
92 ss <<
"@" << this->
path;
110 return "size=" + std::to_string(
intvalue);
112 return "start=" + std::to_string(
intvalue);
114 return "end=" + std::to_string(
intvalue);
121 result +=
"+" + std::to_string(
intvalue);
123 result +=
"-" + std::to_string(-
intvalue);
127 throw InternalError(
nullptr,
"Invalid ValueFlow Value type");
133 return "NonMovedVariable";
135 return "MovedVariable";
137 return "ForwardedVariable";
175 return "SubFunction";
177 return "ThisPointer";
static std::string toString(T value)=delete
The token list that the TokenList generates is a linked-list of this class.
nonneg int exprId() const
std::string expressionString() const
Bound bound
The value bound
std::string toString() const
enum ValueFlow::Value::ValueType valueType
MathLib::bigint path
Path id.
std::string infoString() const
static bool sameToken(const Token *tok1, const Token *tok2)
bool isImpossible() const
double floatValue
float value
const Token * condition
Condition that this value depends on.
const Token * tokvalue
token value - the token that has the value.
long long intvalue
int value (or sometimes bool value?)
Value(long long val=0, Bound b=Bound::Point)
enum ValueFlow::Value::LifetimeKind lifetimeKind
enum ValueFlow::Value::MoveKind moveKind
void assumeCondition(const Token *tok)
enum ValueFlow::Value::LifetimeScope lifetimeScope
Simple container to be thrown when internal error is detected.