Skip to content

Commit ce277c4

Browse files
committed
C++: Accept test changes.
1 parent 70ee2b8 commit ce277c4

3 files changed

Lines changed: 41 additions & 7 deletions

File tree

‎cpp/ql/test/library-tests/dataflow/external-models/flow.expected‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,22 +682,40 @@ edges
682682
| test.cpp:362:15:362:23 | call to ymlSource | test.cpp:362:15:362:25 | call to ymlSource | provenance | Src:MaD:48 |
683683
| test.cpp:362:15:362:25 | call to ymlSource | test.cpp:363:15:363:15 | *x | provenance | |
684684
| test.cpp:363:5:363:5 | forward output argument [s] | test.cpp:365:30:365:30 | *f [s] | provenance | |
685+
| test.cpp:363:5:363:5 | forward output argument [ul] | test.cpp:365:30:365:30 | *f [ul] | provenance | |
685686
| test.cpp:363:15:363:15 | *x | test.cpp:341:30:341:32 | arg | provenance | |
687+
| test.cpp:363:15:363:15 | *x | test.cpp:345:38:345:40 | arg | provenance | |
686688
| test.cpp:363:15:363:15 | *x | test.cpp:363:5:363:5 | forward output argument [s] | provenance | |
689+
| test.cpp:363:15:363:15 | *x | test.cpp:363:5:363:5 | forward output argument [ul] | provenance | |
687690
| test.cpp:365:30:365:30 | *f [s] | test.cpp:365:32:365:34 | call to get [s] | provenance | MaD:88 |
691+
| test.cpp:365:30:365:30 | *f [ul] | test.cpp:365:32:365:34 | call to get [ul] | provenance | MaD:88 |
688692
| test.cpp:365:32:365:34 | call to get [s] | test.cpp:365:32:365:34 | call to get [s] | provenance | |
689693
| test.cpp:365:32:365:34 | call to get [s] | test.cpp:366:13:366:13 | *c [s] | provenance | |
694+
| test.cpp:365:32:365:34 | call to get [ul] | test.cpp:365:32:365:34 | call to get [ul] | provenance | |
695+
| test.cpp:365:32:365:34 | call to get [ul] | test.cpp:367:10:367:10 | *c [ul] | provenance | |
690696
| test.cpp:366:13:366:13 | *c [s] | test.cpp:366:13:366:15 | s | provenance | |
691697
| test.cpp:366:13:366:13 | *c [s] | test.cpp:366:15:366:15 | s | provenance | Sink:MaD:3 |
692698
| test.cpp:366:13:366:15 | s | test.cpp:366:15:366:15 | s | provenance | Sink:MaD:3 |
699+
| test.cpp:367:10:367:10 | *c [ul] | test.cpp:367:10:367:13 | ul | provenance | |
700+
| test.cpp:367:10:367:10 | *c [ul] | test.cpp:367:12:367:13 | ul | provenance | Sink:MaD:3 |
701+
| test.cpp:367:10:367:13 | ul | test.cpp:367:12:367:13 | ul | provenance | Sink:MaD:3 |
693702
| test.cpp:371:24:371:32 | call to ymlSource | test.cpp:371:24:371:34 | call to ymlSource | provenance | Src:MaD:48 |
694703
| test.cpp:371:24:371:34 | call to ymlSource | test.cpp:372:15:372:16 | *ul | provenance | |
704+
| test.cpp:372:5:372:5 | forward output argument [s] | test.cpp:374:30:374:30 | *f [s] | provenance | |
695705
| test.cpp:372:5:372:5 | forward output argument [ul] | test.cpp:374:30:374:30 | *f [ul] | provenance | |
706+
| test.cpp:372:15:372:16 | *ul | test.cpp:341:30:341:32 | arg | provenance | |
696707
| test.cpp:372:15:372:16 | *ul | test.cpp:345:38:345:40 | arg | provenance | |
708+
| test.cpp:372:15:372:16 | *ul | test.cpp:372:5:372:5 | forward output argument [s] | provenance | |
697709
| test.cpp:372:15:372:16 | *ul | test.cpp:372:5:372:5 | forward output argument [ul] | provenance | |
710+
| test.cpp:374:30:374:30 | *f [s] | test.cpp:374:32:374:34 | call to get [s] | provenance | MaD:88 |
698711
| test.cpp:374:30:374:30 | *f [ul] | test.cpp:374:32:374:34 | call to get [ul] | provenance | MaD:88 |
712+
| test.cpp:374:32:374:34 | call to get [s] | test.cpp:374:32:374:34 | call to get [s] | provenance | |
713+
| test.cpp:374:32:374:34 | call to get [s] | test.cpp:375:10:375:10 | *c [s] | provenance | |
699714
| test.cpp:374:32:374:34 | call to get [ul] | test.cpp:374:32:374:34 | call to get [ul] | provenance | |
700715
| test.cpp:374:32:374:34 | call to get [ul] | test.cpp:376:13:376:13 | *c [ul] | provenance | |
716+
| test.cpp:375:10:375:10 | *c [s] | test.cpp:375:10:375:12 | s | provenance | |
717+
| test.cpp:375:10:375:10 | *c [s] | test.cpp:375:12:375:12 | s | provenance | Sink:MaD:3 |
718+
| test.cpp:375:10:375:12 | s | test.cpp:375:12:375:12 | s | provenance | Sink:MaD:3 |
701719
| test.cpp:376:13:376:13 | *c [ul] | test.cpp:376:13:376:16 | ul | provenance | |
702720
| test.cpp:376:13:376:13 | *c [ul] | test.cpp:376:15:376:16 | ul | provenance | Sink:MaD:3 |
703721
| test.cpp:376:13:376:16 | ul | test.cpp:376:15:376:16 | ul | provenance | Sink:MaD:3 |
@@ -1550,20 +1568,34 @@ nodes
15501568
| test.cpp:362:15:362:23 | call to ymlSource | semmle.label | call to ymlSource |
15511569
| test.cpp:362:15:362:25 | call to ymlSource | semmle.label | call to ymlSource |
15521570
| test.cpp:363:5:363:5 | forward output argument [s] | semmle.label | forward output argument [s] |
1571+
| test.cpp:363:5:363:5 | forward output argument [ul] | semmle.label | forward output argument [ul] |
15531572
| test.cpp:363:15:363:15 | *x | semmle.label | *x |
15541573
| test.cpp:365:30:365:30 | *f [s] | semmle.label | *f [s] |
1574+
| test.cpp:365:30:365:30 | *f [ul] | semmle.label | *f [ul] |
15551575
| test.cpp:365:32:365:34 | call to get [s] | semmle.label | call to get [s] |
15561576
| test.cpp:365:32:365:34 | call to get [s] | semmle.label | call to get [s] |
1577+
| test.cpp:365:32:365:34 | call to get [ul] | semmle.label | call to get [ul] |
1578+
| test.cpp:365:32:365:34 | call to get [ul] | semmle.label | call to get [ul] |
15571579
| test.cpp:366:13:366:13 | *c [s] | semmle.label | *c [s] |
15581580
| test.cpp:366:13:366:15 | s | semmle.label | s |
15591581
| test.cpp:366:15:366:15 | s | semmle.label | s |
1582+
| test.cpp:367:10:367:10 | *c [ul] | semmle.label | *c [ul] |
1583+
| test.cpp:367:10:367:13 | ul | semmle.label | ul |
1584+
| test.cpp:367:12:367:13 | ul | semmle.label | ul |
15601585
| test.cpp:371:24:371:32 | call to ymlSource | semmle.label | call to ymlSource |
15611586
| test.cpp:371:24:371:34 | call to ymlSource | semmle.label | call to ymlSource |
1587+
| test.cpp:372:5:372:5 | forward output argument [s] | semmle.label | forward output argument [s] |
15621588
| test.cpp:372:5:372:5 | forward output argument [ul] | semmle.label | forward output argument [ul] |
15631589
| test.cpp:372:15:372:16 | *ul | semmle.label | *ul |
1590+
| test.cpp:374:30:374:30 | *f [s] | semmle.label | *f [s] |
15641591
| test.cpp:374:30:374:30 | *f [ul] | semmle.label | *f [ul] |
1592+
| test.cpp:374:32:374:34 | call to get [s] | semmle.label | call to get [s] |
1593+
| test.cpp:374:32:374:34 | call to get [s] | semmle.label | call to get [s] |
15651594
| test.cpp:374:32:374:34 | call to get [ul] | semmle.label | call to get [ul] |
15661595
| test.cpp:374:32:374:34 | call to get [ul] | semmle.label | call to get [ul] |
1596+
| test.cpp:375:10:375:10 | *c [s] | semmle.label | *c [s] |
1597+
| test.cpp:375:10:375:12 | s | semmle.label | s |
1598+
| test.cpp:375:12:375:12 | s | semmle.label | s |
15671599
| test.cpp:376:13:376:13 | *c [ul] | semmle.label | *c [ul] |
15681600
| test.cpp:376:13:376:16 | ul | semmle.label | ul |
15691601
| test.cpp:376:15:376:16 | ul | semmle.label | ul |
@@ -1862,6 +1894,8 @@ subpaths
18621894
| test.cpp:32:41:32:41 | x | test.cpp:7:47:7:52 | value2 | test.cpp:7:5:7:30 | *ymlStepGenerated_with_body | test.cpp:32:11:32:36 | call to ymlStepGenerated_with_body |
18631895
| test.cpp:172:51:172:51 | x | test.cpp:164:34:164:34 | x | test.cpp:164:7:164:7 | *templateFunction3 | test.cpp:172:13:172:44 | call to templateFunction3 |
18641896
| test.cpp:363:15:363:15 | *x | test.cpp:341:30:341:32 | arg | test.cpp:341:3:341:22 | *this [Return] [s] | test.cpp:363:5:363:5 | forward output argument [s] |
1897+
| test.cpp:363:15:363:15 | *x | test.cpp:345:38:345:40 | arg | test.cpp:345:3:345:22 | *this [Return] [ul] | test.cpp:363:5:363:5 | forward output argument [ul] |
1898+
| test.cpp:372:15:372:16 | *ul | test.cpp:341:30:341:32 | arg | test.cpp:341:3:341:22 | *this [Return] [s] | test.cpp:372:5:372:5 | forward output argument [s] |
18651899
| test.cpp:372:15:372:16 | *ul | test.cpp:345:38:345:40 | arg | test.cpp:345:3:345:22 | *this [Return] [ul] | test.cpp:372:5:372:5 | forward output argument [ul] |
18661900
| test.cpp:443:18:443:18 | *x | test.cpp:435:34:435:38 | first | test.cpp:435:3:435:28 | *this [Return] [x] | test.cpp:443:5:443:5 | emplace output argument [element, x] |
18671901
| test.cpp:453:21:453:21 | *x | test.cpp:436:39:436:44 | second | test.cpp:436:3:436:28 | *this [Return] [x] | test.cpp:453:5:453:5 | emplace output argument [element, x] |

‎cpp/ql/test/library-tests/dataflow/external-models/test.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,15 @@ void forward_test() {
364364

365365
ConstructableFromInt c = f.get();
366366
ymlSink(c.s); // $ ir
367-
ymlSink(c.ul); // clean
367+
ymlSink(c.ul); // $ SPURIOUS: ir
368368
}
369369
{
370370
Forwarder<ConstructableFromInt> f;
371371
unsigned long ul = ymlSource();
372372
f.forward(ul);
373373

374374
ConstructableFromInt c = f.get();
375-
ymlSink(c.s); // clean
375+
ymlSink(c.s); // $ SPURIOUS: ir
376376
ymlSink(c.ul); // $ ir
377377
}
378378
}

‎cpp/ql/test/library-tests/dataflow/forwarding/test.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ void test_standard_pointer_conversions() {
451451
container.emplace(&value); // $ targets=element_void_pointer
452452
container.emplace(&constValue); // no targets
453453
container.emplace(&constValue, 0); // $ targets=element_const_void_pointer
454-
container.emplace(nullptr); // $ MISSING: targets=element_void_pointer
455-
container.emplace(nullptr, 0, 0); // $ MISSING: targets=element_int_pointer
454+
container.emplace(nullptr); // $ targets=element_void_pointer
455+
container.emplace(nullptr, 0, 0); // $ targets=element_int_pointer
456456
container.emplace(0, 0, 0); // no targets
457-
container.emplace(&value, 0, 0, 0, 0); // $ MISSING: targets=element_pointer_bool
457+
container.emplace(&value, 0, 0, 0, 0); // $ targets=element_pointer_bool
458458
container.emplace(nullptr, 0, 0, 0, 0); // no targets
459459
void* opaque = &value;
460460
container.emplace(opaque, 0, 0); // no targets
@@ -483,10 +483,10 @@ void test_function_conversions() {
483483
container.emplace(pointer, 0); // $ SPURIOUS: targets=element_nothrow_callback
484484
container.emplace(callback, 0); // $ SPURIOUS: targets=element_nothrow_callback
485485
container.emplace(callback, 0, 0); // $ targets=element_callback_const_ref
486-
container.emplace(nullptr); // $ MISSING: targets=element_callback
486+
container.emplace(nullptr); // $ targets=element_callback
487487
container.emplace(differentCallback); // no targets
488488
Container<ElementFromStandardPointer> boolean;
489-
boolean.emplace(callback, 0, 0, 0, 0); // $ MISSING: targets=element_pointer_bool
489+
boolean.emplace(callback, 0, 0, 0, 0); // $ targets=element_pointer_bool
490490
boolean.emplace(callback); // no targets
491491
}
492492

0 commit comments

Comments
 (0)