Skip to content

Commit 527409d

Browse files
committed
C++: Fix iterator return types and accept test changes.
1 parent d3d2e21 commit 527409d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cpp/ql/test/library-tests/dataflow/taint-tests/standalone_iterators.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class insert_iterator_by_trait {
6666
insert_iterator_by_trait operator++(int);
6767
insert_iterator_by_trait &operator--();
6868
insert_iterator_by_trait operator--(int);
69-
insert_iterator_by_trait operator*();
70-
insert_iterator_by_trait operator=(int x);
69+
insert_iterator_by_trait& operator*();
70+
insert_iterator_by_trait& operator=(int x);
7171
};
7272

7373
template<>

cpp/ql/test/library-tests/dataflow/taint-tests/taint.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ WARNING: Module DataFlow has been deprecated and may be removed in future (taint
44
WARNING: Module DataFlow has been deprecated and may be removed in future (taint.ql:68,25-33)
55
WARNING: Module TaintTracking has been deprecated and may be removed in future (taint.ql:73,20-33)
66
testFailures
7-
| standalone_iterators.cpp:95:15:95:25 | // $ ast,ir | Missing result:ir= |
87
| standalone_iterators.cpp:112:11:112:21 | // $ ast,ir | Missing result:ir= |
9-
| standalone_iterators.cpp:116:11:116:21 | // $ ast,ir | Missing result:ir= |
10-
| standalone_iterators.cpp:117:12:117:22 | // $ ast,ir | Missing result:ir= |
118
failures

0 commit comments

Comments
 (0)