Skip to content

Commit

Permalink
Update valueflow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 12, 2024
1 parent c1e9f0a commit 743dcef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6574,6 +6574,10 @@ struct ContainerExpressionAnalyzer : ExpressionAnalyzer {
n = -1;
break;
case Library::Container::Action::APPEND: {
if (!container->stdStringLike) {
val->setPossible(); // TODO: use appendee's size
break;
}
std::vector<const Token*> args = getArguments(tok->astParent()->tokAt(2));
if (args.size() == 1) // TODO: handle overloads
n = valueFlowGetStrLength(tok->astParent()->tokAt(3));
Expand Down

0 comments on commit 743dcef

Please sign in to comment.