Skip to content

Commit

Permalink
Update valueflow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Sep 26, 2024
1 parent bb4d0a0 commit 7ddc4f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5377,6 +5377,8 @@ static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
initList = true;
else if (args.size() == 1 && valueFlowIsSameContainerType(vt, tok->astOperand2(), settings))
initList = false; // copy ctor
else if (args.size() == 2 && (!args[0]->valueType() || !args[1]->valueType())) // might be unknown iterators
initList = false;
}
}
if (!initList)
Expand Down

0 comments on commit 7ddc4f4

Please sign in to comment.