Skip to content

Commit f932e51

Browse files
committed
C++: Accept test changes.
1 parent 68a972d commit f932e51

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,5 @@ void test2()
160160

161161
void test_format() {
162162
auto s = std::format("{}", string::source());
163-
sink(s); // $ MISSING: ast,ir
163+
sink(s); // $ ir MISSING: ast
164164
}

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ signatureMatches
2727
| stl.h:190:17:190:23 | replace | (const_iterator,InputIt,InputIt) | vector | insert<InputIt> | 0 |
2828
| stl.h:190:17:190:23 | replace | (const_iterator,InputIt,InputIt) | vector | insert<InputIt> | 1 |
2929
| stl.h:190:17:190:23 | replace | (const_iterator,InputIt,InputIt) | vector | insert<InputIt> | 2 |
30+
| stl.h:232:84:232:90 | getline | (const_iterator,InputIt,InputIt) | deque | insert<InputIt> | 2 |
31+
| stl.h:232:84:232:90 | getline | (const_iterator,InputIt,InputIt) | forward_list | insert_after<InputIt> | 2 |
32+
| stl.h:232:84:232:90 | getline | (const_iterator,InputIt,InputIt) | list | insert<InputIt> | 2 |
33+
| stl.h:232:84:232:90 | getline | (const_iterator,InputIt,InputIt) | vector | insert<InputIt> | 2 |
3034
| stl.h:294:12:294:17 | vector | (const deque &,const Allocator &) | deque<T,Allocator> | deque | 1 |
3135
| stl.h:294:12:294:17 | vector | (const deque &,const Allocator &) | deque<T,Allocator> | deque | 1 |
3236
| stl.h:294:12:294:17 | vector | (const deque &,const Allocator &) | deque<T,Allocator> | deque | 1 |
@@ -257,6 +261,8 @@ signatureMatches
257261
| stl.h:628:38:628:43 | insert | (InputIt,InputIt) | list | assign<InputIt> | 1 |
258262
| stl.h:628:38:628:43 | insert | (InputIt,InputIt) | vector | assign<InputIt> | 0 |
259263
| stl.h:628:38:628:43 | insert | (InputIt,InputIt) | vector | assign<InputIt> | 1 |
264+
| stl.h:678:33:678:38 | format | (format_string,Args &&) | | format<Args> | 0 |
265+
| stl.h:678:33:678:38 | format | (format_string,Args &&) | | format<Args> | 1 |
260266
getSignatureParameterName
261267
| (InputIt,InputIt) | deque | assign<InputIt> | 0 | func:0 |
262268
| (InputIt,InputIt) | deque | assign<InputIt> | 1 | func:0 |
@@ -365,6 +371,14 @@ getSignatureParameterName
365371
| (vector &&,const Allocator &) | vector<T,Allocator> | vector | 0 | vector && |
366372
| (vector &&,const Allocator &) | vector<T,Allocator> | vector | 1 | const class:1 & |
367373
getParameterTypeName
374+
| smart_pointer.cpp:7:27:7:30 | sink | 0 | shared_ptr & |
375+
| smart_pointer.cpp:7:27:7:30 | sink | 0 | shared_ptr & |
376+
| smart_pointer.cpp:8:27:8:30 | sink | 0 | unique_ptr & |
377+
| smart_pointer.cpp:8:27:8:30 | sink | 0 | unique_ptr & |
378+
| stl.h:29:34:29:40 | forward | 0 | remove_reference_t & |
379+
| stl.h:29:34:29:40 | forward | 0 | remove_reference_t & |
380+
| stl.h:29:34:29:40 | forward | 0 | remove_reference_t & |
381+
| stl.h:29:34:29:40 | forward | 0 | remove_reference_t & |
368382
| stl.h:49:3:49:10 | iterator | 0 | const iterator & |
369383
| stl.h:49:3:49:10 | iterator | 0 | const iterator & |
370384
| stl.h:49:3:49:10 | iterator | 0 | const iterator & |
@@ -397,6 +411,8 @@ getParameterTypeName
397411
| stl.h:88:25:88:33 | operator= | 0 | value_type && |
398412
| stl.h:91:24:91:33 | operator++ | 0 | int |
399413
| stl.h:91:24:91:33 | operator++ | 0 | int |
414+
| stl.h:95:44:95:44 | back_inserter | 0 | func:0 & |
415+
| stl.h:95:44:95:44 | back_inserter | 0 | func:0 & |
400416
| stl.h:148:3:148:14 | basic_string | 0 | const class:2 & |
401417
| stl.h:149:33:149:44 | basic_string | 0 | const class:0 * |
402418
| stl.h:149:33:149:44 | basic_string | 1 | const class:2 & |
@@ -445,6 +461,10 @@ getParameterTypeName
445461
| stl.h:193:8:193:12 | clear | 2 | size_type |
446462
| stl.h:195:8:195:11 | swap | 0 | size_type |
447463
| stl.h:195:8:195:11 | swap | 1 | size_type |
464+
| stl.h:198:94:198:102 | operator+ | 0 | const basic_string & |
465+
| stl.h:198:94:198:102 | operator+ | 1 | const basic_string & |
466+
| stl.h:199:94:199:102 | operator+ | 0 | const basic_string & |
467+
| stl.h:199:94:199:102 | operator+ | 1 | const func:0 * |
448468
| stl.h:214:33:214:42 | operator>> | 0 | int & |
449469
| stl.h:217:33:217:35 | get | 0 | char_type & |
450470
| stl.h:218:33:218:35 | get | 0 | char_type * |
@@ -459,10 +479,23 @@ getParameterTypeName
459479
| stl.h:226:32:226:38 | getline | 0 | char_type * |
460480
| stl.h:226:32:226:38 | getline | 1 | streamsize |
461481
| stl.h:226:32:226:38 | getline | 2 | char_type |
482+
| stl.h:229:68:229:77 | operator>> | 0 | basic_istream & |
483+
| stl.h:229:68:229:77 | operator>> | 1 | func:0 * |
484+
| stl.h:230:85:230:94 | operator>> | 0 | basic_istream & |
485+
| stl.h:230:85:230:94 | operator>> | 1 | basic_string & |
486+
| stl.h:232:84:232:90 | getline | 0 | basic_istream & |
487+
| stl.h:232:84:232:90 | getline | 1 | basic_string & |
488+
| stl.h:232:84:232:90 | getline | 2 | func:0 |
489+
| stl.h:233:84:233:90 | getline | 0 | basic_istream & |
490+
| stl.h:233:84:233:90 | getline | 1 | basic_string & |
462491
| stl.h:240:33:240:42 | operator<< | 0 | int |
463492
| stl.h:242:33:242:35 | put | 0 | char_type |
464493
| stl.h:243:33:243:37 | write | 0 | const char_type * |
465494
| stl.h:243:33:243:37 | write | 1 | streamsize |
495+
| stl.h:247:67:247:76 | operator<< | 0 | basic_ostream & |
496+
| stl.h:247:67:247:76 | operator<< | 1 | const func:0 * |
497+
| stl.h:248:85:248:94 | operator<< | 0 | basic_ostream & |
498+
| stl.h:248:85:248:94 | operator<< | 1 | const basic_string & |
466499
| stl.h:259:12:259:29 | basic_stringstream | 0 | const basic_string & |
467500
| stl.h:263:23:263:31 | operator= | 0 | basic_stringstream && |
468501
| stl.h:265:8:265:11 | swap | 0 | basic_stringstream & |
@@ -524,6 +557,12 @@ getParameterTypeName
524557
| stl.h:352:3:352:12 | shared_ptr | 0 | const shared_ptr & |
525558
| stl.h:352:3:352:12 | shared_ptr | 0 | const shared_ptr & |
526559
| stl.h:369:12:369:21 | unique_ptr | 0 | class:0 * |
560+
| stl.h:380:52:380:62 | make_unique | 0 | func:1 && |
561+
| stl.h:380:52:380:62 | make_unique | 0 | func:1 && |
562+
| stl.h:380:52:380:62 | make_unique | 0 | func:1 && |
563+
| stl.h:382:52:382:62 | make_shared | 0 | func:1 && |
564+
| stl.h:382:52:382:62 | make_shared | 0 | func:1 && |
565+
| stl.h:382:52:382:62 | make_shared | 0 | func:1 && |
527566
| stl.h:396:3:396:3 | pair | 0 | const class:0 & |
528567
| stl.h:396:3:396:3 | pair | 0 | const class:0 & |
529568
| stl.h:396:3:396:3 | pair | 0 | const class:0 & |
@@ -547,6 +586,18 @@ getParameterTypeName
547586
| stl.h:397:30:397:33 | pair | 0 | const pair & |
548587
| stl.h:397:30:397:33 | pair | 0 | const pair & |
549588
| stl.h:399:8:399:11 | swap | 0 | pair & |
589+
| stl.h:402:72:402:72 | make_pair | 0 | func:0 && |
590+
| stl.h:402:72:402:72 | make_pair | 0 | func:0 && |
591+
| stl.h:402:72:402:72 | make_pair | 0 | func:0 && |
592+
| stl.h:402:72:402:72 | make_pair | 0 | func:0 && |
593+
| stl.h:402:72:402:72 | make_pair | 0 | func:0 && |
594+
| stl.h:402:72:402:72 | make_pair | 0 | func:0 && |
595+
| stl.h:402:72:402:72 | make_pair | 1 | func:1 && |
596+
| stl.h:402:72:402:72 | make_pair | 1 | func:1 && |
597+
| stl.h:402:72:402:72 | make_pair | 1 | func:1 && |
598+
| stl.h:402:72:402:72 | make_pair | 1 | func:1 && |
599+
| stl.h:402:72:402:72 | make_pair | 1 | func:1 && |
600+
| stl.h:402:72:402:72 | make_pair | 1 | func:1 && |
550601
| stl.h:422:3:422:5 | map | 0 | const map & |
551602
| stl.h:426:8:426:16 | operator= | 0 | const map & |
552603
| stl.h:435:6:435:15 | operator[] | 0 | key_type && |
@@ -671,3 +722,14 @@ getParameterTypeName
671722
| stl.h:639:12:639:15 | find | 0 | const key_type & |
672723
| stl.h:641:28:641:38 | equal_range | 0 | const key_type & |
673724
| stl.h:671:21:671:39 | basic_format_string | 0 | const func:0 & |
725+
| stl.h:678:33:678:38 | format | 0 | format_string |
726+
| stl.h:678:33:678:38 | format | 1 | func:0 && |
727+
| stringstream.cpp:18:6:18:9 | sink | 0 | const basic_ostream> & |
728+
| stringstream.cpp:21:6:21:9 | sink | 0 | const basic_istream> & |
729+
| stringstream.cpp:24:6:24:9 | sink | 0 | const basic_iostream> & |
730+
| swap1.cpp:14:9:14:9 | move | 0 | func:0 & |
731+
| swap2.cpp:14:9:14:9 | move | 0 | func:0 & |
732+
| swap.h:4:20:4:23 | swap | 0 | func:0 & |
733+
| swap.h:4:20:4:23 | swap | 1 | func:0 & |
734+
| vector.cpp:14:27:14:30 | sink | 0 | vector> & |
735+
| vector.cpp:14:27:14:30 | sink | 0 | vector> & |

0 commit comments

Comments
 (0)