Skip to content

Commit ed47749

Browse files
committed
isBinaryOp()
1 parent c359ded commit ed47749

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkstl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ static bool isc_strCall(const Token* tok)
19741974

19751975
static bool isc_strConcat(const Token* tok)
19761976
{
1977-
if (!Token::simpleMatch(tok, "+"))
1977+
if (!Token::simpleMatch(tok, "+") || !tok->isBinaryOp())
19781978
return false;
19791979
const Token* cstr = nullptr;
19801980
for (const Token* op : { tok->astOperand1(), tok->astOperand2() }) {

0 commit comments

Comments
 (0)