File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
- // Workaround for clang < 13, only used in NSBundle.h
2
- #define NS_FORMAT_ARGUMENT (A )
3
-
4
- // Workaround for clang < 13
5
- #define _Nullable_result _Nullable
6
-
7
1
#include < TargetConditionals.h>
8
2
9
3
#if TARGET_OS_OSX
Original file line number Diff line number Diff line change @@ -141,6 +141,10 @@ impl AttributeParser<'_, '_> {
141
141
None
142
142
}
143
143
}
144
+
145
+ fn nullable_result ( & mut self , position : ParsePosition ) -> bool {
146
+ self . strip ( "_Nullable_result" , position)
147
+ }
144
148
}
145
149
146
150
impl Drop for AttributeParser < ' _ , ' _ > {
@@ -584,6 +588,10 @@ impl Inner {
584
588
585
589
let is_const = get_is_const ( parser. is_const ( ParsePosition :: Suffix ) ) ;
586
590
lifetime. update ( parser. lifetime ( ParsePosition :: Suffix ) ) ;
591
+
592
+ // TODO: Use _Nullable_result
593
+ let _nullable_result = parser. nullable_result ( ParsePosition :: Suffix ) ;
594
+
587
595
let nullability = if let Some ( nullability) = unexposed_nullability {
588
596
nullability
589
597
} else {
@@ -672,6 +680,10 @@ impl Inner {
672
680
673
681
let is_const = get_is_const ( parser. is_const ( ParsePosition :: Suffix ) ) ;
674
682
lifetime. update ( parser. lifetime ( ParsePosition :: Suffix ) ) ;
683
+
684
+ // TODO: Use _Nullable_result
685
+ let _nullable_result = parser. nullable_result ( ParsePosition :: Suffix ) ;
686
+
675
687
let mut nullability = if let Some ( nullability) = unexposed_nullability {
676
688
nullability
677
689
} else {
You can’t perform that action at this time.
0 commit comments