Commit f07e516
authored
[Clang] Delegate part of SetupConstraintScope's job to LambdaScopeForCallOperatorInstantiationRAII (#123687)
Now that the RAII object has a dedicate logic for handling nested
lambdas, where the inner lambda could reference any
captures/variables/parameters from the outer lambda, we can shift the
responsibility for managing lambdas away from SetupConstraintScope().
I think this also makes the structure clearer.
Fixes #1234411 parent 5cde6d2 commit f07e516
File tree
5 files changed
+42
-32
lines changed- clang
- docs
- include/clang/Sema
- lib/Sema
- test/SemaTemplate
5 files changed
+42
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
968 | 969 | | |
969 | 970 | | |
970 | 971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13841 | 13841 | | |
13842 | 13842 | | |
13843 | 13843 | | |
| 13844 | + | |
| 13845 | + | |
| 13846 | + | |
| 13847 | + | |
| 13848 | + | |
| 13849 | + | |
| 13850 | + | |
13844 | 13851 | | |
13845 | 13852 | | |
13846 | 13853 | | |
| |||
14521 | 14528 | | |
14522 | 14529 | | |
14523 | 14530 | | |
14524 | | - | |
14525 | | - | |
14526 | | - | |
14527 | | - | |
14528 | | - | |
14529 | | - | |
14530 | | - | |
14531 | | - | |
14532 | | - | |
14533 | | - | |
| 14531 | + | |
| 14532 | + | |
| 14533 | + | |
14534 | 14534 | | |
14535 | 14535 | | |
14536 | 14536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
755 | 758 | | |
756 | 759 | | |
757 | 760 | | |
| |||
777 | 780 | | |
778 | 781 | | |
779 | 782 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | 783 | | |
785 | 784 | | |
786 | | - | |
787 | | - | |
788 | 785 | | |
789 | 786 | | |
790 | 787 | | |
| |||
834 | 831 | | |
835 | 832 | | |
836 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2408 | 2408 | | |
2409 | 2409 | | |
2410 | 2410 | | |
2411 | | - | |
2412 | 2411 | | |
2413 | | - | |
2414 | | - | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
2415 | 2416 | | |
2416 | 2417 | | |
2417 | 2418 | | |
2418 | | - | |
2419 | | - | |
2420 | | - | |
2421 | | - | |
2422 | | - | |
2423 | 2419 | | |
2424 | 2420 | | |
2425 | 2421 | | |
2426 | 2422 | | |
2427 | | - | |
2428 | | - | |
2429 | | - | |
2430 | | - | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
2431 | 2430 | | |
2432 | | - | |
| 2431 | + | |
2433 | 2432 | | |
2434 | 2433 | | |
2435 | 2434 | | |
2436 | 2435 | | |
2437 | 2436 | | |
2438 | 2437 | | |
2439 | | - | |
2440 | | - | |
2441 | | - | |
2442 | 2438 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
0 commit comments