Commit 51a1176
committed
[cxx-interop] Clang member lookup should not look into Swift extensions
Calling `NominalTypeDecl::lookupDirect` triggers deserialization of Swift extensions for the type. `ClangRecordMemberLookup` shouldn't assume it is allowed to deserialize Swift extensions for the given C++ type: there might be extensions which reference the module that is currently being imported, which causes circular request dependency errors.1 parent df2d938 commit 51a1176
File tree
5 files changed
+55
-5
lines changed- include/swift
- AST
- ClangImporter
- lib/ClangImporter
- test/Interop/Cxx/class/inheritance
5 files changed
+55
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
534 | 537 | | |
535 | 538 | | |
536 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4935 | 4935 | | |
4936 | 4936 | | |
4937 | 4937 | | |
| 4938 | + | |
4938 | 4939 | | |
4939 | 4940 | | |
4940 | 4941 | | |
4941 | 4942 | | |
4942 | | - | |
| 4943 | + | |
4943 | 4944 | | |
4944 | 4945 | | |
4945 | 4946 | | |
| |||
4955 | 4956 | | |
4956 | 4957 | | |
4957 | 4958 | | |
4958 | | - | |
4959 | | - | |
| 4959 | + | |
4960 | 4960 | | |
4961 | 4961 | | |
4962 | 4962 | | |
4963 | 4963 | | |
4964 | 4964 | | |
4965 | | - | |
| 4965 | + | |
| 4966 | + | |
| 4967 | + | |
| 4968 | + | |
| 4969 | + | |
| 4970 | + | |
| 4971 | + | |
| 4972 | + | |
| 4973 | + | |
| 4974 | + | |
| 4975 | + | |
| 4976 | + | |
| 4977 | + | |
| 4978 | + | |
| 4979 | + | |
| 4980 | + | |
| 4981 | + | |
4966 | 4982 | | |
4967 | | - | |
| 4983 | + | |
| 4984 | + | |
4968 | 4985 | | |
4969 | 4986 | | |
4970 | 4987 | | |
| |||
5761 | 5778 | | |
5762 | 5779 | | |
5763 | 5780 | | |
| 5781 | + | |
| 5782 | + | |
| 5783 | + | |
| 5784 | + | |
| 5785 | + | |
| 5786 | + | |
| 5787 | + | |
| 5788 | + | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
5764 | 5793 | | |
5765 | 5794 | | |
5766 | 5795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
624 | 628 | | |
625 | 629 | | |
626 | 630 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments