This was our previous convention:
/// Fiddle with the thing.
/*System 0.0.2*/
public func foo()
/// Fiddle with the thing.
/*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
public func foo()
/// Fiddle with the thing.
/*System 0.0.2*/@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public func foo()
Unfortunately, regular comments in between a declaration and its
preceding doc comments interfere with documentation tools.
Change things to the style below instead:
/// Fiddle with the thing.
@available(/*System 0.0.2*/macOS 10, *)
public func foo()
/// Fiddle with the thing.
@available(/*SwiftSystem 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/macOS 10, *)
public func foo()
/// Fiddle with the thing.
@available(/*SwiftSystem 0.0.2*/macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public func foo()
Unfortunately, `@available(*)` isn’t valid syntax, so we have to
add a dummy “macOS 10” version spec. It should have no actual effect.
- Leave Ports as non-frozen for now, but expose its two stored
properties.
- Make most members inlinable. The core initializers and the
deinitializer must remain opaque for now.
- Mark the empty `MachPortRight` types as `@frozen` — these are
markers, not carrying any data.
rdar://106057781
If there's anything between them, DocC doesn't recognize that the doc
comment belongs to the declaration that comes after the interruption,
resulting in that declaration being undocumented.
mach_port_mod_refs() requires the type of right being modified. So,
MACH_PORT_DEAD must be identified as a separate type. As this is
something that shouldn't be possible for receive rights, preconditions
have also been added to protect against this particular error.
Add the usual `os` conditionals and exclude errno constants that aren't
present on this platform.
Maybe availability annotations are a better way to deal with this, but
that is likely something that requires more careful consideration.
These calls are missing their Windows counter parts, resulting warnings
stating `X is deprecated: The POSIX name for this item is deprecated.
Instead, use the ISO C and C++ conformant name: Y. See online help for
details`.
Add them like the rest.