Merge pull request #18014 from microsoft/brodes/seh_flow_phase1_throwing_models

Brodes/seh flow phase1 throwing models
This commit is contained in:
Jeroen Ketema
2024-12-04 13:55:05 +01:00
committed by GitHub
12 changed files with 40 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ predicate deleteMayThrow(DeleteOrDeleteArrayExpr deleteExpr) {
* like it might throw an exception, and the function does not have a `noexcept` or `throw()` specifier.
*/
predicate functionMayThrow(Function f) {
not f instanceof NonThrowingFunction and
not f instanceof NonCppThrowingFunction and
(not exists(f.getBlock()) or stmtMayThrow(f.getBlock()))
}