Skip to content

Commit b9d4a8b

Browse files
committed
Format
1 parent 6021104 commit b9d4a8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/valueflow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6945,11 +6945,13 @@ static void valueFlowContainerSize(const TokenList& tokenlist,
69456945
valueFlowForward(tok->linkAt(2), containerTok, std::move(value), tokenlist, errorLogger, settings);
69466946
}
69476947
// TODO: handle more actions?
6948+
69486949
} else if (tok->str() == "+=" && astIsContainer(tok->astOperand1())) {
69496950
const Token* containerTok = tok->astOperand1();
69506951
const Token* valueTok = tok->astOperand2();
69516952
const MathLib::bigint size = ValueFlow::valueFlowGetStrLength(valueTok);
69526953
forwardMinimumContainerSize(size, tok, containerTok);
6954+
69536955
} else if (tok->str() == "=" && Token::simpleMatch(tok->astOperand2(), "+") && astIsContainerString(tok)) {
69546956
const Token* tok2 = tok->astOperand2();
69556957
MathLib::bigint size = 0;

0 commit comments

Comments
 (0)