Commit 4cc9bf1
authored
Propagate lifetimebound from formal parameters to those in the canonical declaration and use that for analysis (#107627)
This partially fixes #62072 by making sure that re-declarations of a
function do not have the effect of removing lifetimebound from the
canonical declaration.
It doesn't handle the implicit 'this' parameter, but that can be
addressed in a separate fix.1 parent 6d25345 commit 4cc9bf1
File tree
3 files changed
+79
-31
lines changed- clang
- lib/Sema
- test/SemaCXX
3 files changed
+79
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
528 | 540 | | |
| 541 | + | |
529 | 542 | | |
530 | 543 | | |
531 | 544 | | |
| |||
647 | 660 | | |
648 | 661 | | |
649 | 662 | | |
650 | | - | |
651 | | - | |
652 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
653 | 666 | | |
654 | 667 | | |
655 | 668 | | |
656 | 669 | | |
657 | 670 | | |
658 | 671 | | |
659 | 672 | | |
660 | | - | |
661 | | - | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
662 | 676 | | |
663 | | - | |
664 | | - | |
| 677 | + | |
| 678 | + | |
665 | 679 | | |
666 | 680 | | |
667 | 681 | | |
| |||
678 | 692 | | |
679 | 693 | | |
680 | 694 | | |
681 | | - | |
| 695 | + | |
682 | 696 | | |
683 | 697 | | |
684 | | - | |
685 | | - | |
| 698 | + | |
| 699 | + | |
686 | 700 | | |
687 | 701 | | |
688 | 702 | | |
| |||
1245 | 1259 | | |
1246 | 1260 | | |
1247 | 1261 | | |
1248 | | - | |
| 1262 | + | |
| 1263 | + | |
1249 | 1264 | | |
1250 | 1265 | | |
1251 | 1266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3239 | 3239 | | |
3240 | 3240 | | |
3241 | 3241 | | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
3242 | 3278 | | |
3243 | 3279 | | |
3244 | 3280 | | |
| |||
3262 | 3298 | | |
3263 | 3299 | | |
3264 | 3300 | | |
3265 | | - | |
3266 | | - | |
3267 | | - | |
3268 | | - | |
3269 | | - | |
3270 | | - | |
3271 | | - | |
3272 | | - | |
3273 | | - | |
3274 | | - | |
3275 | | - | |
3276 | | - | |
3277 | | - | |
3278 | | - | |
3279 | | - | |
3280 | | - | |
3281 | | - | |
3282 | | - | |
3283 | | - | |
3284 | | - | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
3285 | 3312 | | |
3286 | 3313 | | |
3287 | 3314 | | |
| |||
6960 | 6987 | | |
6961 | 6988 | | |
6962 | 6989 | | |
| 6990 | + | |
6963 | 6991 | | |
6964 | 6992 | | |
6965 | 6993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
0 commit comments