Skip to content

Commit 4eecd78

Browse files
gribozavrMax Moiseev
authored andcommitted
stdlib: annotate Unicode shims with nullability
1 parent 26740f8 commit 4eecd78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stdlib/public/SwiftShims/UnicodeShims.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#include "SwiftStdbool.h"
2222
#include "Visibility.h"
2323

24+
#if __has_feature(nullability)
25+
#pragma clang assume_nonnull begin
26+
#endif
27+
2428
#ifdef __cplusplus
2529
namespace swift { extern "C" {
2630
#endif
@@ -109,4 +113,8 @@ __swift_int32_t _swift_stdlib_unicode_strToLower(
109113
}} // extern "C", namespace swift
110114
#endif
111115

116+
#if __has_feature(nullability)
117+
#pragma clang assume_nonnull end
118+
#endif
119+
112120
#endif

0 commit comments

Comments
 (0)