Skip to content

Commit 5d9056c

Browse files
committed
Add IMPLICIT_BRIDGING for autorelease
1 parent b6259dc commit 5d9056c

File tree

10 files changed

+34
-2
lines changed

10 files changed

+34
-2
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/OpenGraph/Runtime/Metadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extension Metadata: Swift.Hashable, Swift.CustomStringConvertible {
4040
@inline(__always)
4141
public var description: String {
4242
#if canImport(ObjectiveC)
43-
__OGTypeDescription(self).takeUnretainedValue() as NSString as String
43+
__OGTypeDescription(self) as NSString as String
4444
#else
4545
fatalError("Unimplemented")
4646
#endif

Sources/OpenGraph_SPI/include/OGDebugServer.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
OG_ASSUME_NONNULL_BEGIN
1313

14+
OG_IMPLICIT_BRIDGING_ENABLED
15+
1416
typedef struct OGDebugServerStorage OGDebugServerStorage;
1517

1618
typedef const OGDebugServerStorage *OGDebugServer OG_SWIFT_STRUCT;
@@ -28,6 +30,8 @@ OG_EXPORT
2830
void OGDebugServerRun(int timeout) OG_SWIFT_NAME(OGDebugServer.run(timeout:));
2931
OG_EXTERN_C_END
3032

33+
OG_IMPLICIT_BRIDGING_DISABLED
34+
3135
OG_ASSUME_NONNULL_END
3236

3337
#endif

Sources/OpenGraph_SPI/include/OGGraph.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ typedef uint32_t OGAttribute OG_SWIFT_STRUCT OG_SWIFT_NAME(AnyAttribute);
2323

2424
OG_ASSUME_NONNULL_BEGIN
2525

26+
OG_IMPLICIT_BRIDGING_ENABLED
27+
2628
// MARK: - Exported C functions
2729

2830
OG_EXTERN_C_BEGIN
@@ -118,6 +120,8 @@ bool OGGraphAnyInputsChanged(const OGAttribute *inputs, size_t count);
118120

119121
OG_EXTERN_C_END
120122

123+
OG_IMPLICIT_BRIDGING_DISABLED
124+
121125
OG_ASSUME_NONNULL_END
122126

123127
#endif /* OGGraph_h */

Sources/OpenGraph_SPI/include/OGGraphContext.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
OG_ASSUME_NONNULL_BEGIN
1414

15+
OG_IMPLICIT_BRIDGING_ENABLED
16+
1517
OG_EXTERN_C_BEGIN
1618

1719
OG_EXPORT
@@ -20,6 +22,8 @@ OGGraphRef OGGraphContextGetGraph(OGGraphContextRef context) OG_SWIFT_NAME(gette
2022

2123
OG_EXTERN_C_END
2224

25+
OG_IMPLICIT_BRIDGING_DISABLED
26+
2327
OG_ASSUME_NONNULL_END
2428

2529
#endif /* OGGraphContext_h */

Sources/OpenGraph_SPI/include/OGGraphDescription.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99

1010
OG_ASSUME_NONNULL_BEGIN
1111

12+
OG_IMPLICIT_BRIDGING_ENABLED
13+
1214
#if OG_OBJC_FOUNDATION
1315
OG_EXTERN_C_BEGIN
1416
OG_EXPORT
1517
CFStringRef OGDescriptionFormat OG_SWIFT_NAME(OGGraphRef.descriptionFormat);
1618
OG_EXTERN_C_END
1719
#endif
1820

21+
OG_IMPLICIT_BRIDGING_DISABLED
22+
1923
OG_ASSUME_NONNULL_END
2024

2125
#endif /* OGGraphDescription_h */

Sources/OpenGraph_SPI/include/OGGraphTracing.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ typedef OG_OPTIONS(uint32_t, OGGraphTraceFlags) {
1616

1717
OG_ASSUME_NONNULL_BEGIN
1818

19+
OG_IMPLICIT_BRIDGING_ENABLED
20+
1921
OG_EXTERN_C_BEGIN
2022

2123
OG_EXPORT
@@ -32,6 +34,8 @@ void OGGraphStopTracing(_Nullable OGGraphRef graph) OG_SWIFT_NAME(OGGraphRef.sto
3234

3335
OG_EXTERN_C_END
3436

37+
OG_IMPLICIT_BRIDGING_DISABLED
38+
3539
OG_ASSUME_NONNULL_END
3640

3741
#endif /* OGGraphTracing_hpp */

Sources/OpenGraph_SPI/include/OGSubgraph.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
OG_ASSUME_NONNULL_BEGIN
1616

17+
OG_IMPLICIT_BRIDGING_ENABLED
18+
1719
// MARK: - Exported C functions
1820

1921
OG_EXTERN_C_BEGIN
@@ -109,6 +111,8 @@ void OGSubgraphEndTreeElement(OGAttribute attribute);
109111

110112
OG_EXTERN_C_END
111113

114+
OG_IMPLICIT_BRIDGING_DISABLED
115+
112116
OG_ASSUME_NONNULL_END
113117

114118
#endif /* OGSubgraph_h */

Sources/OpenGraph_SPI/include/OGTupleType.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
OG_ASSUME_NONNULL_BEGIN
1515

16+
OG_IMPLICIT_BRIDGING_ENABLED
17+
1618
typedef const OGSwiftMetadata *OGTupleType OG_SWIFT_STRUCT OG_SWIFT_NAME(TupleType);
1719

1820
typedef OG_CLOSED_ENUM(uint32_t, OGTupleCopyOptions) {
@@ -84,6 +86,8 @@ void OGTupleWithBuffer(OGTupleType tuple_type, size_t count, const void (* funct
8486

8587
OG_EXTERN_C_END
8688

89+
OG_IMPLICIT_BRIDGING_DISABLED
90+
8791
OG_ASSUME_NONNULL_END
8892

8993
#endif /* OGTupleType_h */

Sources/OpenGraph_SPI/include/OGTypeID.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
OG_ASSUME_NONNULL_BEGIN
1515

16+
OG_IMPLICIT_BRIDGING_ENABLED
17+
1618
typedef struct OG_SWIFT_NAME(_Metadata) OGSwiftMetadata {
1719
} OGSwiftMetadata;
1820

@@ -114,6 +116,8 @@ char const* _Nullable OGTypeNominalDescriptorName(OGTypeID typeID) OG_SWIFT_NAME
114116

115117
OG_EXTERN_C_END
116118

119+
OG_IMPLICIT_BRIDGING_DISABLED
120+
117121
OG_ASSUME_NONNULL_END
118122

119123
#endif /* OGTypeID_h */

0 commit comments

Comments
 (0)