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 {
6868 */
6969 abstract predicate raisesException ( boolean unconditional ) ;
7070
71+ /**
72+ * DEPRECATES: use/extend `raisesException` instead.
73+ */
74+ deprecated predicate mayThrowException ( boolean unconditional ) {
75+ this .raisesException ( unconditional )
76+ }
77+
7178 /**
7279 * Holds if this function will always raise an exception if called
7380 */
You can’t perform that action at this time.
0 commit comments