Commit d885dec
Gabor Horvath
[cxx-interop] Import some C++ methods as Unsafe
ClangImporter already had some logic in place to rename certain unsafe
C++ methods to make sure their name indicates unsafety. With the recent
push for auditability, we have a new @unsafe attribute so we can
automate parts of the auditing process. This patch makes sure whenever
we rename a method as "Unsafe", we also add the @unsafe attribute.1 parent 09c89fb commit d885dec
File tree
2 files changed
+22
-9
lines changed- lib/ClangImporter
- test/Interop/Cxx/class
2 files changed
+22
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8202 | 8202 | | |
8203 | 8203 | | |
8204 | 8204 | | |
8205 | | - | |
| 8205 | + | |
8206 | 8206 | | |
8207 | 8207 | | |
8208 | | - | |
| 8208 | + | |
8209 | 8209 | | |
8210 | 8210 | | |
| 8211 | + | |
| 8212 | + | |
| 8213 | + | |
| 8214 | + | |
| 8215 | + | |
8211 | 8216 | | |
8212 | 8217 | | |
8213 | 8218 | | |
8214 | | - | |
8215 | | - | |
8216 | | - | |
| 8219 | + | |
| 8220 | + | |
| 8221 | + | |
| 8222 | + | |
| 8223 | + | |
| 8224 | + | |
| 8225 | + | |
8217 | 8226 | | |
8218 | 8227 | | |
8219 | 8228 | | |
| |||
8395 | 8404 | | |
8396 | 8405 | | |
8397 | 8406 | | |
8398 | | - | |
8399 | | - | |
8400 | | - | |
| 8407 | + | |
8401 | 8408 | | |
8402 | 8409 | | |
8403 | 8410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
60 | | - | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
0 commit comments