Commit 72dbff3
Gabor Horvath
π[6.1][cxx-interop] Avoid spurious type aliases in reverse interop
Explanation: Due to a missing check we emitted using declarations for
types we did not emit into the reverse interop header resulted in
compilation errors.
Scope: C++ reverse interop
Risk: Low. The fix is straightforward calling a function to do the check
if the entity should be included in the reverse interop header. It does
not affect other code paths.
Testing: Added compiler tests.
Issue: rdar://141688074
Reviewer: @egorzhdan
Original PR: #782871 parent 38a990a commit 72dbff3
File tree
2 files changed
+9
-0
lines changed- lib/PrintAsClang
- test/Interop/SwiftToCxx/structs
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments