Commit 648fd43
Gabor Horvath
[cxx-interop] Remove a feature flag
SafeInterop was guarding whether we import certain foreign types as
unsafe. Since these attrbutes are only considered when an opt-in strict
language mode is on, this PR removes this feature flag. We still rely on
the presence of the AllowUnsafeAttribute flag to add the unsafe
attributes to the imported types and functions.1 parent 2852c59 commit 648fd43
File tree
4 files changed
+5
-14
lines changed- include/swift/Basic
- lib
- AST
- ClangImporter
- test/Interop/Cxx/class
4 files changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | 404 | | |
408 | 405 | | |
409 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2040 | 2040 | | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | | - | |
2044 | | - | |
| 2043 | + | |
2045 | 2044 | | |
2046 | 2045 | | |
2047 | 2046 | | |
| |||
2203 | 2202 | | |
2204 | 2203 | | |
2205 | 2204 | | |
2206 | | - | |
2207 | | - | |
| 2205 | + | |
2208 | 2206 | | |
2209 | 2207 | | |
2210 | 2208 | | |
| |||
4135 | 4133 | | |
4136 | 4134 | | |
4137 | 4135 | | |
4138 | | - | |
4139 | | - | |
| 4136 | + | |
4140 | 4137 | | |
4141 | 4138 | | |
4142 | 4139 | | |
| |||
8500 | 8497 | | |
8501 | 8498 | | |
8502 | 8499 | | |
8503 | | - | |
8504 | | - | |
| 8500 | + | |
8505 | 8501 | | |
8506 | 8502 | | |
8507 | 8503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments