Skip to content

Commit 1fbd066

Browse files
Update checkexceptionsafety.cpp
1 parent bd33cf5 commit 1fbd066

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/checkexceptionsafety.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ static const Token * functionThrowsRecursive(const Function * function, std::set
257257
tok = tok->linkAt(1); // skip till start of catch clauses
258258
if (tok->str() == "throw")
259259
return tok;
260-
if (tok->function() && Token::simpleMatch(tok->astParent(), "(")) {
260+
if (tok->function() && (Token::simpleMatch(tok->astParent(), "(") ||
261+
(Token::simpleMatch(tok->astParent(), ".") && Token::simpleMatch(tok->astParent()->astParent(), "(")))) {
261262
const Function * called = tok->function();
262263
// check if called function has an exception specification
263264
if (called->isThrow() && called->throwArg)

0 commit comments

Comments
 (0)