We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c359ded commit ed47749Copy full SHA for ed47749
1 file changed
lib/checkstl.cpp
@@ -1974,7 +1974,7 @@ static bool isc_strCall(const Token* tok)
1974
1975
static bool isc_strConcat(const Token* tok)
1976
{
1977
- if (!Token::simpleMatch(tok, "+"))
+ if (!Token::simpleMatch(tok, "+") || !tok->isBinaryOp())
1978
return false;
1979
const Token* cstr = nullptr;
1980
for (const Token* op : { tok->astOperand1(), tok->astOperand2() }) {
0 commit comments