File tree Expand file tree Collapse file tree
cpp/ql/test/library-tests/dataflow/fields Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ class A
5353 {
5454 B *b = new B ();
5555 b->set (new C1 ());
56- sink (b->get ()); // $ast $f-:ir
57- sink ((new B (new C ()))->get ()); // $ast $f-: ir
56+ sink (b->get ()); // $ast $ir=55:12
57+ sink ((new B (new C ()))->get ()); // $ast $ir
5858 }
5959
6060 void f3 ()
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ class C
2626
2727 void func ()
2828 {
29- sink (s1); // $ast $f-: ir
29+ sink (s1); // $ast $ir
3030 sink (s2); // $f-:ast $f-:ir
31- sink (s3); // $ast $f-: ir
31+ sink (s3); // $ast $ir
3232 sink (s4); // $f-:ast $f-:ir
3333 }
3434
Original file line number Diff line number Diff line change @@ -48,19 +48,19 @@ struct S {
4848void test_setDirectly () {
4949 S s;
5050 s.setDirectly (user_input ());
51- sink (s.getDirectly ()); // $ast $f-: ir
51+ sink (s.getDirectly ()); // $ast $ir
5252}
5353
5454void test_setIndirectly () {
5555 S s;
5656 s.setIndirectly (user_input ());
57- sink (s.getIndirectly ()); // $ast $f-: ir
57+ sink (s.getIndirectly ()); // $ast $ir
5858}
5959
6060void test_setThroughNonMember () {
6161 S s;
6262 s.setThroughNonMember (user_input ());
63- sink (s.getThroughNonMember ()); // $ast $f-: ir
63+ sink (s.getThroughNonMember ()); // $ast $ir
6464}
6565
6666void test_nonMemberSetA () {
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ void bar(Outer &b)
4848 // in _some_ access path somewhere in the search. That makes the library conclude
4949 // that there could be flow to `b.inner.f.a_` even when the flow was actually to
5050 // `b.inner.f.b_`.
51- sink (b.inner .f .a ()); // $ast=62:19 $f+:ast=63:19 $ast=64:19 $f+:ast=65:19 $f-:ir
52- sink (b.inner .f .b ()); // $f+:ast=62:19 $ast=63:19 $f+:ast=64:19 $ast=65:19 $f-:ir
51+ sink (b.inner .f .a ()); // $ast=62:19 $f+:ast=63:19 $ast=64:19 $f+:ast=65:19 $ir=62:19 $ir=64:19
52+ sink (b.inner .f .b ()); // $f+:ast=62:19 $ast=63:19 $f+:ast=64:19 $ast=65:19 $ir=63:19 $ir=65:19
5353}
5454
5555void foo ()
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ class Foo
2525
2626void bar (Foo &f)
2727{
28- sink (f.a ()); // $ast=34:11 $ast=36:11 $f-:ir
29- sink (f.b ()); // $ast=35:14 $ast=36:25 $f-:ir
28+ sink (f.a ()); // $ast=34:11 $ast=36:11 $ir=34:11 $ir=36:11
29+ sink (f.b ()); // $ast=35:14 $ast=36:25 $ir=35:14 $ir=36:25
3030}
3131
3232void foo ()
Original file line number Diff line number Diff line change 1+ | file://:0:0:0:0 | (const void *)... | Unexpected result: ir= |
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ class Foo
2525
2626void bar (Foo &f)
2727{
28- sink (f.a ()); // $ast=39:12 $ast=41:12 $f-:ir
29- sink (f.b ()); // $ast=40:12 $ast=42:12 $f-:ir
28+ sink (f.a ()); // $ast=39:12 $ast=41:12 $ir=39:12 $ir=41:12
29+ sink (f.b ()); // $ast=40:12 $ast=42:12 $ir=40:12 $ir=42:12
3030}
3131
3232void foo ()
You can’t perform that action at this time.
0 commit comments