Skip to content

Commit 30114c5

Browse files
committed
Convert A27-0-4 to use the new dataflow library
1 parent 357ee08 commit 30114c5

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

cpp/autosar/src/rules/A27-0-4/CStyleStringsUsed.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import cpp
1616
import codingstandards.cpp.autosar
17-
import semmle.code.cpp.dataflow.DataFlow
17+
import semmle.code.cpp.dataflow.new.DataFlow
1818

1919
class InstanceOfCStyleString extends Expr {
2020
InstanceOfCStyleString() {

cpp/autosar/test/rules/A27-0-4/CStyleStringsUsed.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CStyleStringsUsed.ql:39,3-11)
2-
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CStyleStringsUsed.ql:39,23-31)
3-
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CStyleStringsUsed.ql:39,47-55)
41
| test.cpp:7:20:7:27 | CodeQL | Usage of C-style string in $@. | test.cpp:7:20:7:27 | CodeQL | expression |
52
| test.cpp:7:20:7:27 | CodeQL | Usage of C-style string in $@. | test.cpp:16:16:16:17 | a1 | expression |
63
| test.cpp:8:22:8:26 | call to c_str | Usage of C-style string in $@. | test.cpp:8:22:8:26 | call to c_str | expression |

0 commit comments

Comments
 (0)