mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Add miscellaneous sema diagnostics to check that the new os log
APIs and atomic operations are passed compile-time constants for certain arguments.
This commit is contained in:
@@ -37,6 +37,7 @@ public let _noopClosure = { (x : String, y : UnsafeBufferPointer<UInt8>) in retu
|
||||
/// - message: An instance of `OSLogMessage` created from string interpolation
|
||||
/// - assertion: A closure that takes a format string and a pointer to a
|
||||
/// byte buffer and asserts a condition.
|
||||
@_semantics("oslog.requires_constant_arguments")
|
||||
@_transparent
|
||||
@_optimize(none)
|
||||
public // @testable
|
||||
|
||||
Reference in New Issue
Block a user