Swift: implement imported_ and exported_modules

This has expanded the required builtin symbols.
This commit is contained in:
Paolo Tranquilli
2022-08-26 11:21:57 +02:00
parent 2e9d9cfb20
commit ebc7432f46
9 changed files with 97 additions and 15 deletions

View File

@@ -1,2 +1,3 @@
| file://:0:0:0:0 | Foo | getModule: | file://:0:0:0:0 | Foo | getInterfaceType: | module<Foo> | getName: | Foo | isBuiltinModule: | no | isSystemModule: | no |
| file://:0:0:0:0 | __ObjC | getModule: | file://:0:0:0:0 | __ObjC | getInterfaceType: | module<__ObjC> | getName: | __ObjC | isBuiltinModule: | no | isSystemModule: | no |
| file://:0:0:0:0 | default_module_name | getModule: | file://:0:0:0:0 | default_module_name | getInterfaceType: | module<default_module_name> | getName: | default_module_name | isBuiltinModule: | no | isSystemModule: | no |

View File

@@ -0,0 +1,7 @@
| file://:0:0:0:0 | Foo | 0 | file://:0:0:0:0 | Swift |
| file://:0:0:0:0 | Foo | 1 | file://:0:0:0:0 | _Concurrency |
| file://:0:0:0:0 | Foo | 2 | file://:0:0:0:0 | SwiftOnoneSupport |
| file://:0:0:0:0 | __ObjC | 0 | file://:0:0:0:0 | Swift |
| file://:0:0:0:0 | default_module_name | 0 | file://:0:0:0:0 | Swift |
| file://:0:0:0:0 | default_module_name | 1 | file://:0:0:0:0 | _Concurrency |
| file://:0:0:0:0 | default_module_name | 2 | file://:0:0:0:0 | SwiftOnoneSupport |

View File

@@ -0,0 +1 @@
| file://:0:0:0:0 | Foo | 0 | file://:0:0:0:0 | Swift |

View File

@@ -0,0 +1,7 @@
| file://:0:0:0:0 | Foo | 0 | file://:0:0:0:0 | Swift |
| file://:0:0:0:0 | Foo | 1 | file://:0:0:0:0 | _Concurrency |
| file://:0:0:0:0 | Foo | 2 | file://:0:0:0:0 | SwiftOnoneSupport |
| file://:0:0:0:0 | __ObjC | 0 | file://:0:0:0:0 | Swift |
| file://:0:0:0:0 | default_module_name | 0 | file://:0:0:0:0 | Swift |
| file://:0:0:0:0 | default_module_name | 1 | file://:0:0:0:0 | _Concurrency |
| file://:0:0:0:0 | default_module_name | 2 | file://:0:0:0:0 | SwiftOnoneSupport |

View File

@@ -1 +1,2 @@
//codeql-extractor-options: -module-name Foo
@_exported import Swift