Skip to content

Commit 1b80983

Browse files
committed
Check for exit|abort
1 parent 40cdf41 commit 1b80983

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/astutils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,8 @@ bool isEscapeFunction(const Token* ftok, const Library* library)
19061906
{
19071907
if (!Token::Match(ftok, "%name% ("))
19081908
return false;
1909+
if (Token::Match(ftok, "exit|abort"))
1910+
return true;
19091911
const Function* function = ftok->function();
19101912
if (function) {
19111913
if (function->isEscapeFunction())

0 commit comments

Comments
 (0)