Commit fd11d2e
committed
[ClangImporter] Decide whether to import Objective-C pointer types as
protocol types or existential types based on context.
When an id<P> type is the underlying type of a typedef or a generic
constraint, it should be imported as a protocol or composition. Otherwise,
it should be imported as an existential type. This is similar to how type
resolution resolves existential types using TypeResolverContext.1 parent f886b38 commit fd11d2e
File tree
3 files changed
+35
-17
lines changed- lib
- ClangImporter
- PrintAsClang
3 files changed
+35
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2796 | 2796 | | |
2797 | 2797 | | |
2798 | 2798 | | |
2799 | | - | |
2800 | | - | |
2801 | | - | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
2805 | | - | |
2806 | | - | |
2807 | | - | |
2808 | | - | |
2809 | 2799 | | |
2810 | 2800 | | |
2811 | 2801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
| 1053 | + | |
1053 | 1054 | | |
1054 | 1055 | | |
1055 | 1056 | | |
| |||
1182 | 1183 | | |
1183 | 1184 | | |
1184 | 1185 | | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | 1186 | | |
1189 | 1187 | | |
1190 | 1188 | | |
| |||
1205 | 1203 | | |
1206 | 1204 | | |
1207 | 1205 | | |
1208 | | - | |
| 1206 | + | |
1209 | 1207 | | |
1210 | | - | |
| 1208 | + | |
1211 | 1209 | | |
1212 | 1210 | | |
1213 | 1211 | | |
| |||
1285 | 1283 | | |
1286 | 1284 | | |
1287 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
1288 | 1312 | | |
1289 | 1313 | | |
1290 | 1314 | | |
| |||
1550 | 1574 | | |
1551 | 1575 | | |
1552 | 1576 | | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1553 | 1582 | | |
1554 | 1583 | | |
1555 | 1584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1835 | 1835 | | |
1836 | 1836 | | |
1837 | 1837 | | |
1838 | | - | |
1839 | | - | |
| 1838 | + | |
1840 | 1839 | | |
1841 | 1840 | | |
1842 | 1841 | | |
| |||
0 commit comments