Skip to content

Commit f5670d1

Browse files
Update astutils.cpp
1 parent d5e17e0 commit f5670d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/astutils.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,8 @@ bool isConstFunctionCall(const Token* ftok, const Library& library)
19911991
return true;
19921992
if (!Token::Match(ftok, "%name% ("))
19931993
return false;
1994+
if (ftok->isStandardType())
1995+
return true;
19941996
if (const Function* f = ftok->function()) {
19951997
if (f->isAttributePure() || f->isAttributeConst())
19961998
return true;

0 commit comments

Comments
 (0)