Skip to content

Commit e6641e7

Browse files
committed
Code and comment simplifications
1 parent 37365c7 commit e6641e7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cpp/ql/lib/semmle/code/cpp/models/interfaces/NonThrowing.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import semmle.code.cpp.models.Models
77

88
/**
99
* A function that is guaranteed to never throw a C++ exception
10-
* (distinct from a structured exception handling, SEH, exception).
10+
*
11+
* The function may still raise a structured exception handling (SEH) exception.
1112
*/
1213
abstract class NonCppThrowingFunction extends Function { }
1314

cpp/ql/lib/semmle/code/cpp/models/interfaces/Throwing.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import semmle.code.cpp.models.interfaces.FunctionInputsAndOutputs
1414
* A function that is known to raise an exception.
1515
*/
1616
abstract class ThrowingFunction extends Function {
17-
ThrowingFunction() { any() }
18-
1917
/**
2018
* Holds if this function may throw an exception during evaluation.
2119
* If `unconditional` is `true` the function always throws an exception.
@@ -24,8 +22,6 @@ abstract class ThrowingFunction extends Function {
2422
}
2523

2624
/**
27-
* A function that is known to raise an exception unconditionally.
28-
* The only cases known where this happens is for SEH
29-
* (structured exception handling) exceptions.
25+
* A function that unconditionally raises a structured exception handling (SEH) exception.
3026
*/
3127
abstract class AlwaysSehThrowingFunction extends Function { }

0 commit comments

Comments
 (0)