We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7acbb65 commit 6eccb2eCopy full SHA for 6eccb2e
lib/valueflow.cpp
@@ -5331,6 +5331,8 @@ static void valueFlowForwardConst(Token* start,
5331
const Settings* const settings,
5332
int /*unused*/ = 0)
5333
{
5334
+ if (!precedes(start, end))
5335
+ throw InternalError(var->nameToken(), "valueFlowForwardConst: start token does not precede the end token.");
5336
for (Token* tok = start; tok != end; tok = tok->next()) {
5337
if (tok->varId() == var->declarationId()) {
5338
for (const ValueFlow::Value& value : values)
0 commit comments