-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
clang importerArea → compiler: The clang importerArea → compiler: The clang importerfeatureA feature request or implementationA feature request or implementation
Description
Motivation
Currently, we have no way to mark Clang-imported declarations with arbitrary Swift attributes with APINotes files. For example, it can be problematic when migrating to strict concurrency model because we can't add concurrency related markers without modifying system header files.
Proposed solution
Add SwiftAttr
field to APINotes like below
Name: SwiftWASILibc
Globals:
- Name: errno
SwiftAttr: ["nonisolated(unsafe)"]
Alternatives considered
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
clang importerArea → compiler: The clang importerArea → compiler: The clang importerfeatureA feature request or implementationA feature request or implementation