[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:
Ravi Kandhadai
2020-03-31 14:20:48 -07:00
parent fccfa29240
commit b57a1d7c0e
16 changed files with 872 additions and 50 deletions

View File

@@ -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