Skip to content

Commit 3504614

Browse files
Update astutils.cpp
1 parent 901a331 commit 3504614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/astutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@ static bool hasNoreturnFunction(const Token* tok, const Library& library, const
22032203
{
22042204
if (!tok)
22052205
return false;
2206-
const Token* ftok = tok->str() == "(" ? tok->previous() : nullptr;
2206+
const Token* ftok = (tok->str() == "(" && !tok->isCast()) ? tok->previous() : nullptr;
22072207
while (Token::simpleMatch(ftok, "("))
22082208
ftok = ftok->astOperand1();
22092209
if (ftok) {

0 commit comments

Comments
 (0)