Skip to content

Commit 7059fc3

Browse files
committed
Adding intermediate solution towards deprecating ThrowingFunction
1 parent 4412691 commit 7059fc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,14 @@ class TranslatedFunctionCall extends TranslatedCallExpr, TranslatedDirectCall {
364364

365365
final override predicate mayThrowException() {
366366
expr.getTarget().(ThrowingFunction).mayThrowException(_)
367+
or
368+
expr.getTarget() instanceof AlwaysSehThrowingFunction
367369
}
368370

369371
final override predicate mustThrowException() {
370372
expr.getTarget().(ThrowingFunction).mayThrowException(true)
373+
or
374+
expr.getTarget() instanceof AlwaysSehThrowingFunction
371375
}
372376
}
373377

0 commit comments

Comments
 (0)