Commit 1df580b
committed
[Clang] Use the templated function declaration for DiagnoseUseOfDecl
We missed the check of diagnose_if attributes for some templates during
initialization, because we used the template declaration, rather than
its templated one. And there is seemingly no handling of TemplateDecls
in DiagnoseUseOfDecl as of now.
Also, we can avoid the duplicate constraint checking because it's
already checked in overload resolution.
There are some diagnostic regressions, all of which are warnings
for uses of lambdas in C++03 mode, which I believe we should still diagnose.1 parent 4647cd7 commit 1df580b
File tree
5 files changed
+52
-13
lines changed- clang
- docs
- lib/Sema
- test
- Parser
- SemaCXX
5 files changed
+52
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7539 | 7539 | | |
7540 | 7540 | | |
7541 | 7541 | | |
7542 | | - | |
| 7542 | + | |
7543 | 7543 | | |
7544 | 7544 | | |
7545 | 7545 | | |
| |||
8092 | 8092 | | |
8093 | 8093 | | |
8094 | 8094 | | |
8095 | | - | |
| 8095 | + | |
8096 | 8096 | | |
8097 | 8097 | | |
8098 | 8098 | | |
| |||
8102 | 8102 | | |
8103 | 8103 | | |
8104 | 8104 | | |
8105 | | - | |
| 8105 | + | |
8106 | 8106 | | |
8107 | 8107 | | |
8108 | 8108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | | - | |
| 576 | + | |
576 | 577 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
| 591 | + | |
| 592 | + | |
584 | 593 | | |
585 | 594 | | |
586 | 595 | | |
| 596 | + | |
587 | 597 | | |
588 | | - | |
| 598 | + | |
| 599 | + | |
589 | 600 | | |
590 | 601 | | |
591 | 602 | | |
592 | 603 | | |
593 | 604 | | |
594 | 605 | | |
| 606 | + | |
595 | 607 | | |
596 | 608 | | |
597 | 609 | | |
| |||
606 | 618 | | |
607 | 619 | | |
608 | 620 | | |
| 621 | + | |
| 622 | + | |
609 | 623 | | |
610 | 624 | | |
| 625 | + | |
| 626 | + | |
611 | 627 | | |
612 | 628 | | |
613 | 629 | | |
| |||
0 commit comments