Skip to content

Commit 7c05622

Browse files
committed
C++: Add missing type and accept test changes.
1 parent 96b6986 commit 7c05622

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ namespace Microsoft {
12661266

12671267
ComPtr();
12681268
ComPtr(const ComPtr &);
1269-
ComPtr(&&other);
1269+
ComPtr(ComPtr &&);
12701270

12711271
template <typename U>
12721272
ComPtr(U *);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,8 @@ WARNING: module 'TaintTracking' has been deprecated and may be removed in future
13051305
| atl.cpp:1324:9:1324:10 | ref arg p2 | atl.cpp:1328:1:1328:1 | p2 | |
13061306
| atl.cpp:1324:12:1324:14 | call to Get | atl.cpp:1324:8:1324:16 | * ... | TAINT |
13071307
| atl.cpp:1326:34:1326:42 | call to move | atl.cpp:1326:34:1326:47 | call to ComPtr | TAINT |
1308+
| atl.cpp:1326:34:1326:42 | ref arg call to move | atl.cpp:1326:44:1326:45 | p1 [inner post update] | |
1309+
| atl.cpp:1326:34:1326:42 | ref arg call to move | atl.cpp:1328:1:1328:1 | p1 | |
13081310
| atl.cpp:1326:34:1326:47 | call to ComPtr | atl.cpp:1327:9:1327:10 | p3 | |
13091311
| atl.cpp:1326:34:1326:47 | call to ComPtr | atl.cpp:1328:1:1328:1 | p3 | |
13101312
| atl.cpp:1326:44:1326:45 | p1 | atl.cpp:1326:34:1326:42 | call to move | TAINT |

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5568,6 +5568,7 @@ signatureMatches
55685568
| atl.cpp:1231:5:1231:12 | CStrBufT | (unsigned char *,int,unsigned long) | | UTF8_putc | 1 |
55695569
| atl.cpp:1231:5:1231:12 | CStrBufT | (unsigned char *,int,unsigned long) | | UTF8_putc | 2 |
55705570
| atl.cpp:1268:5:1268:10 | ComPtr | (const ComPtr &) | ComPtr | ComPtr | 0 |
5571+
| atl.cpp:1269:5:1269:10 | ComPtr | (ComPtr &&) | ComPtr | ComPtr | 0 |
55715572
| atl.cpp:1272:5:1272:10 | ComPtr | (T *) | ComPtr | ComPtr<T> | 0 |
55725573
| atl.cpp:1283:13:1283:18 | CopyTo | (T **) | ComPtr<T> | CopyTo | 0 |
55735574
| atl.cpp:1285:13:1285:18 | CopyTo | (Curl_easy *,void **) | | Curl_resolver_init | 1 |
@@ -46418,6 +46419,7 @@ getParameterTypeName
4641846419
| atl.cpp:1231:5:1231:12 | CStrBufT | 2 | DWORD |
4641946420
| atl.cpp:1231:5:1231:12 | CStrBufT | 2 | unsigned long |
4642046421
| atl.cpp:1268:5:1268:10 | ComPtr | 0 | const ComPtr & |
46422+
| atl.cpp:1269:5:1269:10 | ComPtr | 0 | ComPtr && |
4642146423
| atl.cpp:1272:5:1272:10 | ComPtr | 0 | func:0 * |
4642246424
| atl.cpp:1277:13:1277:14 | As | 0 | ComPtr * |
4642346425
| atl.cpp:1283:13:1283:18 | CopyTo | 0 | Interfaceclass:0ype ** |

0 commit comments

Comments
 (0)