Skip to content

Commit 25a5ff5

Browse files
committed
CPP: Similarly update other @deprecated messages.
1 parent f0356bb commit 25a5ff5

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

cpp/ql/src/Likely Bugs/OO/NonVirtualDestructor.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
* @id cpp/non-virtual-destructor
88
* @problem.severity warning
99
* @tags reliability
10-
* @deprecated
10+
* @deprecated This query is deprecated, and replaced by
11+
* jsf/4.10 Classes/AV Rule 78.ql, which has far fewer false
12+
* positives on typical code.
1113
*/
1214

13-
// This query is deprecated, and replaced by jsf/4.10 Classes/AV Rule 78.ql, which has far fewer false positives on typical code.
14-
1515
import cpp
1616

1717
from Class base, Destructor d1, Class derived, Destructor d2

cpp/ql/src/PointsTo/Debug.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
* @description Query to help investigate mysterious results with ReturnStackAllocatedObject
44
* @kind table
55
* @id cpp/points-to/debug
6-
* @deprecated
6+
* @deprecated This query is not suitable for production use and has been deprecated.
77
*/
88

9-
// This query is not suitable for production use and has been deprecated.
10-
119
import cpp
1210
import semmle.code.cpp.pointsto.PointsTo
1311

cpp/ql/src/PointsTo/PreparedStagedPointsTo.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
* @description Query to force evaluation of staged points-to predicates
44
* @kind table
55
* @id cpp/points-to/prepared-staged-points-to
6-
* @deprecated
6+
* @deprecated This query is not suitable for production use and has been deprecated.
77
*/
88

9-
// This query is not suitable for production use and has been deprecated.
10-
119
import semmle.code.cpp.pointsto.PointsTo
1210

1311
select count(int set, Element location | setlocations(set, unresolveElement(location))),

cpp/ql/src/PointsTo/Stats.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
* @description Count the number points-to sets with 0 or 1 incoming flow edges, and the total number of points-to sets
44
* @kind table
55
* @id cpp/points-to/stats
6-
* @deprecated
6+
* @deprecated This query is not suitable for production use and has been deprecated.
77
*/
88

9-
// This query is not suitable for production use and has been deprecated.
10-
119
import cpp
1210
import semmle.code.cpp.pointsto.PointsTo
1311

cpp/ql/src/PointsTo/TaintedFormatStrings.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
* @name Taint test
33
* @kind table
44
* @id cpp/points-to/tainted-format-strings
5-
* @deprecated
5+
* @deprecated This query is not suitable for production use and has been deprecated.
66
*/
77

8-
// This query is not suitable for production use and has been deprecated.
9-
108
import cpp
119
import semmle.code.cpp.pointsto.PointsTo
1210
import semmle.code.cpp.pointsto.CallGraph

0 commit comments

Comments
 (0)