Skip to content

Commit 84c7b63

Browse files
authored
[docs] Fix Objective-C bridging attribute name. (#28495)
Correct attribute name is `objc_bridge_mutable` according to https://github.com/llvm/llvm-project/blob/40963b2bf0e72626d21917a08f3c86e56541ae7a/clang/include/clang/Basic/Attr.td#L1743
1 parent 16bd20e commit 84c7b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/CToSwiftNameTranslation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Protocols in Objective-C are normally in a separate namespace from the "ordinary
203203

204204
## CF Types
205205

206-
"Core Foundation" is a C-based object-oriented system with strong conventions built around pointers to opaque structs. Creating new Core Foundation types is not generally supported, but Swift will recognize those in Apple's SDKs. If a struct has the `objc_bridge`, `objc_mutable_bridge`, or `objc_bridge_related` Clang attributes, it will be treated as a CF type and a typedef of a pointer to that struct will be imported as a class in Swift. The suffix "Ref" will be dropped from the class's name if present unless doing so would conflict with another declaration in the same module as the typedef.
206+
"Core Foundation" is a C-based object-oriented system with strong conventions built around pointers to opaque structs. Creating new Core Foundation types is not generally supported, but Swift will recognize those in Apple's SDKs. If a struct has the `objc_bridge`, `objc_bridge_mutable`, or `objc_bridge_related` Clang attributes, it will be treated as a CF type and a typedef of a pointer to that struct will be imported as a class in Swift. The suffix "Ref" will be dropped from the class's name if present unless doing so would conflict with another declaration in the same module as the typedef.
207207

208208
If the class name contains the word "Mutable" exactly once per the usual word-boundary rules, a corresponding class name without the word "Mutable" will be used as the superclass if present. Otherwise, the CF type is taken to be a root object.
209209

0 commit comments

Comments
 (0)