Skip to content

Commit 729c7f2

Browse files
committed
C++: Add deprecated alias to RemoteFlowSourceFunction and LocalFlowSourceFunction.
1 parent b1c7cb6 commit 729c7f2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cpp/ql/src/semmle/code/cpp/models/interfaces/FlowSource.qll

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ abstract class RemoteFlowSourceFunction extends Function {
2020
abstract predicate hasRemoteFlowSource(FunctionOutput output, string description);
2121
}
2222

23+
/**
24+
* DEPRECATED: Use `RemoteFlowSourceFunction` instead.
25+
*
26+
* A library function that returns data that may be read from a network connection.
27+
*/
28+
deprecated class RemoteFlowFunction = RemoteFlowSourceFunction;
29+
2330
/**
2431
* A library function that returns data that is directly controlled by a user.
2532
*/
@@ -30,6 +37,13 @@ abstract class LocalFlowSourceFunction extends Function {
3037
abstract predicate hasLocalFlowSource(FunctionOutput output, string description);
3138
}
3239

40+
/**
41+
* DEPRECATED: Use `LocalFlowSourceFunction` instead.
42+
*
43+
* A library function that returns data that is directly controlled by a user.
44+
*/
45+
deprecated class LocalFlowFunction = LocalFlowSourceFunction;
46+
3347
/** A library function that sends data over a network connection. */
3448
abstract class RemoteFlowSinkFunction extends Function {
3549
/**

0 commit comments

Comments
 (0)