Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e455f0

Browse files
author
Dave Bartolomeo
committed
Fix test expectations
1 parent bf8340f commit 1e455f0

7 files changed

Lines changed: 330 additions & 314 deletions

File tree

cpp/ql/test/library-tests/classes/variadic/expr.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
| test.cpp:4:9:4:9 | this |
55
| test.cpp:4:9:4:11 | call to expression |
66
| test.cpp:10:5:10:11 | call to Foo |
7+
| test.cpp:10:5:10:11 | temporary object |

cpp/ql/test/library-tests/conversions/conversions.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
| conversions.cpp:179:36:179:37 | (..:: *)... | pointer-to-member derived class conversion | prval | ..:: * | ..:: * |
123123
| conversions.cpp:180:10:180:47 | static_cast<..:: *>... | pointer-to-member derived class conversion | prval | ..:: * | ..:: * |
124124
| conversions.cpp:180:43:180:46 | (..:: *)... | pointer-to-member derived class conversion | prval | ..:: * | ..:: * |
125-
| conversions.cpp:190:22:190:29 | (const String)... | glvalue conversion | lval | const String | void |
125+
| conversions.cpp:190:22:190:29 | (const String)... | glvalue conversion | lval | const String | String |
126126
| conversions.cpp:193:20:193:31 | (const Base)... | glvalue conversion | lval | const Base | Base |
127127
| conversions.cpp:193:31:193:31 | (Base)... | base class conversion | lval | Base | Middle |
128128
| conversions.cpp:193:31:193:31 | (Middle)... | base class conversion | lval | Middle | Derived |

cpp/ql/test/library-tests/exprs/unevaluated/unevaluated.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
| test.cpp:42:11:42:11 | x |
1414
| test.cpp:57:9:57:9 | 4 |
1515
| test.cpp:63:9:63:19 | call to getAVirtual |
16+
| test.cpp:63:9:63:21 | temporary object |

cpp/ql/test/library-tests/question_mark_colon/cfg.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
| 0 | 1 | file://:0:0:0:0 | temporary object | None |
12
| 2 | 1 | question_mark_colon.c:2:7:2:7 | f | None |
23
| 4 | 1 | question_mark_colon.c:4:14:8:1 | { ... } | declaration |
34
| 4 | 17 | question_mark_colon.c:4:6:4:6 | g | None |

cpp/ql/test/library-tests/types/unspecified/exprs.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
| test.cpp:13:15:13:15 | constructor init of field d | struct D | struct D |
1111
| test.cpp:19:30:19:30 | (reference to) | reference to {const {struct E}} | reference to {struct E} |
1212
| test.cpp:19:30:19:30 | call to E | void | void |
13+
| test.cpp:19:30:19:30 | temporary object | const {struct E} | struct E |
1314
| test.cpp:19:30:19:30 | w | pointer to {int} | pointer to {int} |
1415
| test.cpp:23:12:23:12 | (const F *)... | pointer to {const {struct F}} | pointer to {struct F} |
1516
| test.cpp:23:12:23:12 | f | pointer to {struct F} | pointer to {struct F} |
Lines changed: 153 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,153 @@
1-
| Base::Base | false | 215 | 215 | Base |
2-
| Base::Base | false | 220 | 220 | return ... |
3-
| Base::Base | false | 222 | 222 | { ... } |
4-
| Base::Base | false | 363 | 363 | Base |
5-
| Base::Base | false | 367 | 367 | Base |
6-
| Base::Base | true | 220 | 215 | |
7-
| Base::Base | true | 222 | 220 | |
8-
| Base::Base_f | false | 407 | 407 | Base_f |
9-
| Base::Base_f | false | 412 | 412 | declaration |
10-
| Base::Base_f | false | 416 | 416 | 1 |
11-
| Base::Base_f | false | 417 | 417 | return ... |
12-
| Base::Base_f | false | 419 | 419 | { ... } |
13-
| Base::Base_f | false | 424 | 424 | call to f |
14-
| Base::Base_f | false | 426 | 426 | this |
15-
| Base::Base_f | false | 427 | 427 | initializer for i |
16-
| Base::Base_f | true | 412 | 427 | |
17-
| Base::Base_f | true | 416 | 407 | |
18-
| Base::Base_f | true | 417 | 416 | |
19-
| Base::Base_f | true | 419 | 412 | |
20-
| Base::Base_f | true | 426 | 424 | |
21-
| Base::Base_f | true | 427 | 426 | |
22-
| Base::Base_g | false | 371 | 371 | Base_g |
23-
| Base::Base_g | false | 376 | 376 | declaration |
24-
| Base::Base_g | false | 380 | 380 | 4 |
25-
| Base::Base_g | false | 381 | 381 | return ... |
26-
| Base::Base_g | false | 383 | 383 | { ... } |
27-
| Base::Base_g | false | 388 | 388 | call to g |
28-
| Base::Base_g | false | 391 | 391 | this |
29-
| Base::Base_g | false | 392 | 392 | initializer for i |
30-
| Base::Base_g | true | 376 | 392 | |
31-
| Base::Base_g | true | 380 | 371 | |
32-
| Base::Base_g | true | 381 | 380 | |
33-
| Base::Base_g | true | 383 | 376 | |
34-
| Base::Base_g | true | 388 | 381 | |
35-
| Base::Base_g | true | 391 | 388 | |
36-
| Base::Base_g | true | 392 | 391 | |
37-
| Base::f | false | 301 | 301 | f |
38-
| Base::f | false | 437 | 437 | call to abort |
39-
| Base::f | false | 439 | 439 | ExprStmt |
40-
| Base::f | false | 441 | 441 | return ... |
41-
| Base::f | false | 443 | 443 | { ... } |
42-
| Base::f | true | 439 | 437 | |
43-
| Base::f | true | 441 | 301 | |
44-
| Base::f | true | 443 | 439 | |
45-
| Base::g | false | 230 | 230 | g |
46-
| Base::g | false | 402 | 402 | 3 |
47-
| Base::g | false | 403 | 403 | return ... |
48-
| Base::g | false | 405 | 405 | { ... } |
49-
| Base::g | true | 402 | 230 | |
50-
| Base::g | true | 403 | 402 | |
51-
| Base::g | true | 405 | 403 | |
52-
| Base::operator= | false | 349 | 349 | operator= |
53-
| Base::operator= | false | 359 | 359 | operator= |
54-
| __va_list_tag::operator= | false | 92 | 92 | operator= |
55-
| __va_list_tag::operator= | false | 99 | 99 | operator= |
56-
| abort | false | 345 | 345 | abort |
57-
| fun_f1 | false | 312 | 312 | fun_f1 |
58-
| fun_f1 | false | 317 | 317 | declaration |
59-
| fun_f1 | false | 319 | 319 | declaration |
60-
| fun_f1 | false | 323 | 323 | 2 |
61-
| fun_f1 | false | 324 | 324 | return ... |
62-
| fun_f1 | false | 326 | 326 | { ... } |
63-
| fun_f1 | false | 329 | 329 | call to Base |
64-
| fun_f1 | false | 330 | 330 | new |
65-
| fun_f1 | false | 332 | 332 | initializer for p1 |
66-
| fun_f1 | false | 337 | 337 | call to f |
67-
| fun_f1 | false | 339 | 339 | p1 |
68-
| fun_f1 | false | 341 | 341 | initializer for i |
69-
| fun_f1 | true | 317 | 332 | |
70-
| fun_f1 | true | 319 | 341 | |
71-
| fun_f1 | true | 323 | 312 | |
72-
| fun_f1 | true | 324 | 323 | |
73-
| fun_f1 | true | 326 | 317 | |
74-
| fun_f1 | true | 329 | 330 | |
75-
| fun_f1 | true | 330 | 319 | |
76-
| fun_f1 | true | 332 | 329 | |
77-
| fun_f1 | true | 337 | 324 | |
78-
| fun_f1 | true | 339 | 337 | |
79-
| fun_f1 | true | 341 | 339 | |
80-
| fun_f2 | false | 276 | 276 | fun_f2 |
81-
| fun_f2 | false | 281 | 281 | declaration |
82-
| fun_f2 | false | 283 | 283 | declaration |
83-
| fun_f2 | false | 287 | 287 | 2 |
84-
| fun_f2 | false | 288 | 288 | return ... |
85-
| fun_f2 | false | 290 | 290 | { ... } |
86-
| fun_f2 | false | 293 | 293 | call to Base |
87-
| fun_f2 | false | 294 | 294 | new |
88-
| fun_f2 | false | 296 | 296 | initializer for p1 |
89-
| fun_f2 | false | 304 | 304 | call to f |
90-
| fun_f2 | false | 306 | 306 | p1 |
91-
| fun_f2 | false | 308 | 308 | initializer for i |
92-
| fun_f2 | true | 281 | 296 | |
93-
| fun_f2 | true | 283 | 308 | |
94-
| fun_f2 | true | 287 | 276 | |
95-
| fun_f2 | true | 288 | 287 | |
96-
| fun_f2 | true | 290 | 281 | |
97-
| fun_f2 | true | 293 | 294 | |
98-
| fun_f2 | true | 294 | 283 | |
99-
| fun_f2 | true | 296 | 293 | |
100-
| fun_f2 | true | 306 | 304 | |
101-
| fun_f2 | true | 308 | 306 | |
102-
| fun_g1 | false | 243 | 243 | fun_g1 |
103-
| fun_g1 | false | 248 | 248 | declaration |
104-
| fun_g1 | false | 250 | 250 | declaration |
105-
| fun_g1 | false | 254 | 254 | 2 |
106-
| fun_g1 | false | 255 | 255 | return ... |
107-
| fun_g1 | false | 257 | 257 | { ... } |
108-
| fun_g1 | false | 260 | 260 | call to Base |
109-
| fun_g1 | false | 261 | 261 | new |
110-
| fun_g1 | false | 263 | 263 | initializer for p1 |
111-
| fun_g1 | false | 268 | 268 | call to g |
112-
| fun_g1 | false | 270 | 270 | p1 |
113-
| fun_g1 | false | 272 | 272 | initializer for i |
114-
| fun_g1 | true | 248 | 263 | |
115-
| fun_g1 | true | 250 | 272 | |
116-
| fun_g1 | true | 254 | 243 | |
117-
| fun_g1 | true | 255 | 254 | |
118-
| fun_g1 | true | 257 | 248 | |
119-
| fun_g1 | true | 260 | 261 | |
120-
| fun_g1 | true | 261 | 250 | |
121-
| fun_g1 | true | 263 | 260 | |
122-
| fun_g1 | true | 268 | 255 | |
123-
| fun_g1 | true | 270 | 268 | |
124-
| fun_g1 | true | 272 | 270 | |
125-
| fun_g2 | false | 192 | 192 | fun_g2 |
126-
| fun_g2 | false | 197 | 197 | declaration |
127-
| fun_g2 | false | 199 | 199 | declaration |
128-
| fun_g2 | false | 203 | 203 | 2 |
129-
| fun_g2 | false | 204 | 204 | return ... |
130-
| fun_g2 | false | 206 | 206 | { ... } |
131-
| fun_g2 | false | 214 | 214 | call to Base |
132-
| fun_g2 | false | 223 | 223 | new |
133-
| fun_g2 | false | 225 | 225 | initializer for p1 |
134-
| fun_g2 | false | 235 | 235 | call to g |
135-
| fun_g2 | false | 237 | 237 | p1 |
136-
| fun_g2 | false | 239 | 239 | initializer for i |
137-
| fun_g2 | true | 197 | 225 | |
138-
| fun_g2 | true | 199 | 239 | |
139-
| fun_g2 | true | 203 | 192 | |
140-
| fun_g2 | true | 204 | 203 | |
141-
| fun_g2 | true | 206 | 197 | |
142-
| fun_g2 | true | 214 | 223 | |
143-
| fun_g2 | true | 223 | 199 | |
144-
| fun_g2 | true | 225 | 214 | |
145-
| fun_g2 | true | 235 | 204 | |
146-
| fun_g2 | true | 237 | 235 | |
147-
| fun_g2 | true | 239 | 237 | |
148-
| operator delete | false | 212 | 212 | operator delete |
149-
| operator new | false | 210 | 210 | operator new |
1+
| Base::Base | false | 165 | 165 | Base |
2+
| Base::Base | false | 170 | 170 | return ... |
3+
| Base::Base | false | 172 | 172 | { ... } |
4+
| Base::Base | false | 326 | 326 | Base |
5+
| Base::Base | false | 330 | 330 | Base |
6+
| Base::Base | true | 170 | 165 | |
7+
| Base::Base | true | 172 | 170 | |
8+
| Base::Base_f | false | 369 | 369 | Base_f |
9+
| Base::Base_f | false | 374 | 374 | declaration |
10+
| Base::Base_f | false | 379 | 379 | call to f |
11+
| Base::Base_f | false | 381 | 381 | this |
12+
| Base::Base_f | false | 382 | 382 | initializer for i |
13+
| Base::Base_f | false | 386 | 386 | return ... |
14+
| Base::Base_f | false | 390 | 390 | 1 |
15+
| Base::Base_f | false | 391 | 391 | { ... } |
16+
| Base::Base_f | true | 374 | 382 | |
17+
| Base::Base_f | true | 381 | 379 | |
18+
| Base::Base_f | true | 382 | 381 | |
19+
| Base::Base_f | true | 386 | 390 | |
20+
| Base::Base_f | true | 390 | 369 | |
21+
| Base::Base_f | true | 391 | 374 | |
22+
| Base::Base_g | false | 334 | 334 | Base_g |
23+
| Base::Base_g | false | 339 | 339 | declaration |
24+
| Base::Base_g | false | 344 | 344 | call to g |
25+
| Base::Base_g | false | 346 | 346 | this |
26+
| Base::Base_g | false | 347 | 347 | initializer for i |
27+
| Base::Base_g | false | 351 | 351 | return ... |
28+
| Base::Base_g | false | 355 | 355 | 4 |
29+
| Base::Base_g | false | 356 | 356 | { ... } |
30+
| Base::Base_g | true | 339 | 347 | |
31+
| Base::Base_g | true | 344 | 351 | |
32+
| Base::Base_g | true | 346 | 344 | |
33+
| Base::Base_g | true | 347 | 346 | |
34+
| Base::Base_g | true | 351 | 355 | |
35+
| Base::Base_g | true | 355 | 334 | |
36+
| Base::Base_g | true | 356 | 339 | |
37+
| Base::f | false | 256 | 256 | f |
38+
| Base::f | false | 397 | 397 | ExprStmt |
39+
| Base::f | false | 401 | 401 | call to abort |
40+
| Base::f | false | 403 | 403 | return ... |
41+
| Base::f | false | 405 | 405 | { ... } |
42+
| Base::f | true | 397 | 401 | |
43+
| Base::f | true | 403 | 256 | |
44+
| Base::f | true | 405 | 397 | |
45+
| Base::g | false | 183 | 183 | g |
46+
| Base::g | false | 362 | 362 | return ... |
47+
| Base::g | false | 366 | 366 | 3 |
48+
| Base::g | false | 367 | 367 | { ... } |
49+
| Base::g | true | 362 | 366 | |
50+
| Base::g | true | 366 | 183 | |
51+
| Base::g | true | 367 | 362 | |
52+
| Base::operator= | false | 311 | 311 | operator= |
53+
| Base::operator= | false | 320 | 320 | operator= |
54+
| __va_list_tag::operator= | false | 57 | 57 | operator= |
55+
| __va_list_tag::operator= | false | 63 | 63 | operator= |
56+
| abort | false | 308 | 308 | abort |
57+
| fun_f1 | false | 274 | 274 | fun_f1 |
58+
| fun_f1 | false | 279 | 279 | declaration |
59+
| fun_f1 | false | 282 | 282 | call to Base |
60+
| fun_f1 | false | 283 | 283 | temporary object |
61+
| fun_f1 | false | 284 | 284 | new |
62+
| fun_f1 | false | 286 | 286 | initializer for p1 |
63+
| fun_f1 | false | 290 | 290 | declaration |
64+
| fun_f1 | false | 293 | 293 | call to f |
65+
| fun_f1 | false | 295 | 295 | p1 |
66+
| fun_f1 | false | 297 | 297 | initializer for i |
67+
| fun_f1 | false | 301 | 301 | return ... |
68+
| fun_f1 | false | 305 | 305 | 2 |
69+
| fun_f1 | false | 306 | 306 | { ... } |
70+
| fun_f1 | true | 279 | 286 | |
71+
| fun_f1 | true | 282 | 284 | |
72+
| fun_f1 | true | 284 | 290 | |
73+
| fun_f1 | true | 286 | 282 | |
74+
| fun_f1 | true | 290 | 297 | |
75+
| fun_f1 | true | 293 | 301 | |
76+
| fun_f1 | true | 295 | 293 | |
77+
| fun_f1 | true | 297 | 295 | |
78+
| fun_f1 | true | 301 | 305 | |
79+
| fun_f1 | true | 305 | 274 | |
80+
| fun_f1 | true | 306 | 279 | |
81+
| fun_f2 | false | 237 | 237 | fun_f2 |
82+
| fun_f2 | false | 242 | 242 | declaration |
83+
| fun_f2 | false | 245 | 245 | call to Base |
84+
| fun_f2 | false | 246 | 246 | temporary object |
85+
| fun_f2 | false | 247 | 247 | new |
86+
| fun_f2 | false | 249 | 249 | initializer for p1 |
87+
| fun_f2 | false | 253 | 253 | declaration |
88+
| fun_f2 | false | 259 | 259 | call to f |
89+
| fun_f2 | false | 261 | 261 | p1 |
90+
| fun_f2 | false | 263 | 263 | initializer for i |
91+
| fun_f2 | false | 267 | 267 | return ... |
92+
| fun_f2 | false | 271 | 271 | 2 |
93+
| fun_f2 | false | 272 | 272 | { ... } |
94+
| fun_f2 | true | 242 | 249 | |
95+
| fun_f2 | true | 245 | 247 | |
96+
| fun_f2 | true | 247 | 253 | |
97+
| fun_f2 | true | 249 | 245 | |
98+
| fun_f2 | true | 253 | 263 | |
99+
| fun_f2 | true | 261 | 259 | |
100+
| fun_f2 | true | 263 | 261 | |
101+
| fun_f2 | true | 267 | 271 | |
102+
| fun_f2 | true | 271 | 237 | |
103+
| fun_f2 | true | 272 | 242 | |
104+
| fun_g1 | false | 203 | 203 | fun_g1 |
105+
| fun_g1 | false | 208 | 208 | declaration |
106+
| fun_g1 | false | 211 | 211 | call to Base |
107+
| fun_g1 | false | 212 | 212 | temporary object |
108+
| fun_g1 | false | 213 | 213 | new |
109+
| fun_g1 | false | 215 | 215 | initializer for p1 |
110+
| fun_g1 | false | 219 | 219 | declaration |
111+
| fun_g1 | false | 222 | 222 | call to g |
112+
| fun_g1 | false | 224 | 224 | p1 |
113+
| fun_g1 | false | 226 | 226 | initializer for i |
114+
| fun_g1 | false | 230 | 230 | return ... |
115+
| fun_g1 | false | 234 | 234 | 2 |
116+
| fun_g1 | false | 235 | 235 | { ... } |
117+
| fun_g1 | true | 208 | 215 | |
118+
| fun_g1 | true | 211 | 213 | |
119+
| fun_g1 | true | 213 | 219 | |
120+
| fun_g1 | true | 215 | 211 | |
121+
| fun_g1 | true | 219 | 226 | |
122+
| fun_g1 | true | 222 | 230 | |
123+
| fun_g1 | true | 224 | 222 | |
124+
| fun_g1 | true | 226 | 224 | |
125+
| fun_g1 | true | 230 | 234 | |
126+
| fun_g1 | true | 234 | 203 | |
127+
| fun_g1 | true | 235 | 208 | |
128+
| fun_g2 | false | 151 | 151 | fun_g2 |
129+
| fun_g2 | false | 156 | 156 | declaration |
130+
| fun_g2 | false | 164 | 164 | call to Base |
131+
| fun_g2 | false | 173 | 173 | temporary object |
132+
| fun_g2 | false | 174 | 174 | new |
133+
| fun_g2 | false | 176 | 176 | initializer for p1 |
134+
| fun_g2 | false | 180 | 180 | declaration |
135+
| fun_g2 | false | 188 | 188 | call to g |
136+
| fun_g2 | false | 190 | 190 | p1 |
137+
| fun_g2 | false | 192 | 192 | initializer for i |
138+
| fun_g2 | false | 196 | 196 | return ... |
139+
| fun_g2 | false | 200 | 200 | 2 |
140+
| fun_g2 | false | 201 | 201 | { ... } |
141+
| fun_g2 | true | 156 | 176 | |
142+
| fun_g2 | true | 164 | 174 | |
143+
| fun_g2 | true | 174 | 180 | |
144+
| fun_g2 | true | 176 | 164 | |
145+
| fun_g2 | true | 180 | 192 | |
146+
| fun_g2 | true | 188 | 196 | |
147+
| fun_g2 | true | 190 | 188 | |
148+
| fun_g2 | true | 192 | 190 | |
149+
| fun_g2 | true | 196 | 200 | |
150+
| fun_g2 | true | 200 | 151 | |
151+
| fun_g2 | true | 201 | 156 | |
152+
| operator delete | false | 162 | 162 | operator delete |
153+
| operator new | false | 160 | 160 | operator new |

0 commit comments

Comments
 (0)