File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
cpp/ql/lib/semmle/code/cpp/models/interfaces Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Provides an abstract class for modeling functions that never throw.
3
+ */
4
+
5
+ import semmle.code.cpp.Function
6
+ import semmle.code.cpp.models.Models
7
+
8
+ /**
9
+ * A function that is guaranteed to never throw.
10
+ *
11
+ * DEPRECATED: use `NonThrowingFunction` in `semmle.code.cpp.models.Models.Interfaces.Throwing` instead.
12
+ */
13
+ abstract deprecated class NonThrowingFunction extends Function { }
Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ abstract class ThrowingFunction extends ExceptionAnnotation {
68
68
*/
69
69
abstract predicate raisesException ( boolean unconditional ) ;
70
70
71
+ /**
72
+ * DEPRECATES: use/extend `raisesException` instead.
73
+ */
74
+ deprecated predicate mayThrowException ( boolean unconditional ) {
75
+ this .raisesException ( unconditional )
76
+ }
77
+
71
78
/**
72
79
* Holds if this function will always raise an exception if called
73
80
*/
You can’t perform that action at this time.
0 commit comments