Skip to content

Commit c4d74c3

Browse files
committed
CPP: Replace query paths with @name and @id.
1 parent b254e1f commit c4d74c3

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

cpp/ql/src/Likely Bugs/JapaneseEra/ConstructorOrMethodWithExactEraDate.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @tags reliability
99
* japanese-era
1010
* @deprecated This query is deprecated, use
11-
* Best Practices/Magic Constants/JapaneseEraDate.ql instead.
11+
* Hard-coded Japanese era start date (`cpp/japanese-era/exact-era-date`)
12+
* instead.
1213
*/
1314

1415
import cpp

cpp/ql/src/Likely Bugs/JapaneseEra/StructWithExactEraDate.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* @tags reliability
99
* japanese-era
1010
* @deprecated This query is deprecated, use
11-
* Best Practices/Magic Constants/JapaneseEraDate.ql instead.
11+
* Hard-coded Japanese era start date (`cpp/japanese-era/exact-era-date`)
12+
* instead.
1213
*/
1314

1415
import cpp

cpp/ql/src/Likely Bugs/Memory Management/PotentialBufferOverflow.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
* security
1111
* external/cwe/cwe-676
1212
* @deprecated This query is deprecated, use
13-
* Security/CWE/CWE-120/OverrunWrite.ql and
14-
* Security/CWE/CWE-120/OverrunWriteFloat.ql instead.
13+
* Potentially overrunning write (`cpp/overrunning-write`) and
14+
* Potentially overrunning write with float to string conversion
15+
* (`cpp/overrunning-write-with-float) instead.
1516
*/
1617
import cpp
1718
import semmle.code.cpp.commons.Buffer

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @problem.severity warning
99
* @tags reliability
1010
* @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.
11+
* No virtual destructor (`cpp/jsf/av-rule-78`), which has far
12+
* fewer false positives on typical code.
1313
*/
1414

1515
import cpp

0 commit comments

Comments
 (0)