1- // Generated by Apple Swift version 3 .1 (swiftlang-802 .0.53 clang-802 .0.42 )
1+ // Generated by Apple Swift version 4 .1 effective-3.3 (swiftlang-902 .0.48 clang-902 .0.37.1 )
22#pragma clang diagnostic push
3+ #pragma clang diagnostic ignored "-Wgcc-compat"
34
4- #if defined(__has_include ) && __has_include (< swift /objc - prologue .h > )
5+ #if !defined(__has_include )
6+ # define __has_include (x ) 0
7+ #endif
8+ #if !defined(__has_attribute )
9+ # define __has_attribute (x ) 0
10+ #endif
11+ #if !defined(__has_feature )
12+ # define __has_feature (x ) 0
13+ #endif
14+ #if !defined(__has_warning )
15+ # define __has_warning (x ) 0
16+ #endif
17+
18+ #if __has_include (< swift /objc - prologue .h > )
519# include <swift/objc-prologue.h>
620#endif
721
1327
1428#if !defined(SWIFT_TYPEDEFS )
1529# define SWIFT_TYPEDEFS 1
16- # if defined( __has_include ) && __has_include (< uchar .h > )
30+ # if __has_include (< uchar .h > )
1731# include <uchar.h>
18- # elif !defined(__cplusplus ) || __cplusplus < 201103L
32+ # elif !defined(__cplusplus )
1933typedef uint_least16_t char16_t ;
2034typedef uint_least32_t char32_t ;
2135# endif
@@ -48,31 +62,36 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
4862# endif
4963#endif
5064
51- #if defined( __has_attribute ) && __has_attribute (objc_runtime_name )
65+ #if __has_attribute (objc_runtime_name )
5266# define SWIFT_RUNTIME_NAME (X ) __attribute__((objc_runtime_name(X)))
5367#else
5468# define SWIFT_RUNTIME_NAME (X )
5569#endif
56- #if defined( __has_attribute ) && __has_attribute (swift_name )
70+ #if __has_attribute (swift_name )
5771# define SWIFT_COMPILE_NAME (X ) __attribute__((swift_name(X)))
5872#else
5973# define SWIFT_COMPILE_NAME (X )
6074#endif
61- #if defined( __has_attribute ) && __has_attribute (objc_method_family )
75+ #if __has_attribute (objc_method_family )
6276# define SWIFT_METHOD_FAMILY (X ) __attribute__((objc_method_family(X)))
6377#else
6478# define SWIFT_METHOD_FAMILY (X )
6579#endif
66- #if defined( __has_attribute ) && __has_attribute (noescape )
80+ #if __has_attribute (noescape )
6781# define SWIFT_NOESCAPE __attribute__((noescape))
6882#else
6983# define SWIFT_NOESCAPE
7084#endif
71- #if defined( __has_attribute ) && __has_attribute (warn_unused_result )
85+ #if __has_attribute (warn_unused_result )
7286# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
7387#else
7488# define SWIFT_WARN_UNUSED_RESULT
7589#endif
90+ #if __has_attribute (noreturn )
91+ # define SWIFT_NORETURN __attribute__((noreturn))
92+ #else
93+ # define SWIFT_NORETURN
94+ #endif
7695#if !defined(SWIFT_CLASS_EXTRA )
7796# define SWIFT_CLASS_EXTRA
7897#endif
@@ -83,7 +102,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
83102# define SWIFT_ENUM_EXTRA
84103#endif
85104#if !defined(SWIFT_CLASS )
86- # if defined( __has_attribute ) && __has_attribute (objc_subclassing_restricted )
105+ # if __has_attribute (objc_subclassing_restricted )
87106# define SWIFT_CLASS (SWIFT_NAME ) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
88107# define SWIFT_CLASS_NAMED (SWIFT_NAME ) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
89108# else
@@ -102,16 +121,23 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
102121#endif
103122
104123#if !defined(OBJC_DESIGNATED_INITIALIZER )
105- # if defined( __has_attribute ) && __has_attribute (objc_designated_initializer )
124+ # if __has_attribute (objc_designated_initializer )
106125# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
107126# else
108127# define OBJC_DESIGNATED_INITIALIZER
109128# endif
110129#endif
130+ #if !defined(SWIFT_ENUM_ATTR )
131+ # if defined(__has_attribute ) && __has_attribute (enum_extensibility )
132+ # define SWIFT_ENUM_ATTR __attribute__((enum_extensibility(open)))
133+ # else
134+ # define SWIFT_ENUM_ATTR
135+ # endif
136+ #endif
111137#if !defined(SWIFT_ENUM )
112- # define SWIFT_ENUM (_type , _name ) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type
113- # if defined( __has_feature ) && __has_feature (generalized_swift_name )
114- # define SWIFT_ENUM_NAMED (_type , _name , SWIFT_NAME ) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_EXTRA _name : _type
138+ # define SWIFT_ENUM (_type , _name ) enum _name : _type _name; enum SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
139+ # if __has_feature (generalized_swift_name )
140+ # define SWIFT_ENUM_NAMED (_type , _name , SWIFT_NAME ) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
115141# else
116142# define SWIFT_ENUM_NAMED (_type , _name , SWIFT_NAME ) SWIFT_ENUM(_type, _name)
117143# endif
@@ -131,9 +157,30 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
131157#if !defined(SWIFT_DEPRECATED_MSG )
132158# define SWIFT_DEPRECATED_MSG (...) __attribute__((deprecated(__VA_ARGS__)))
133159#endif
134- #if defined(__has_feature ) && __has_feature (modules )
160+ #if __has_feature (attribute_diagnose_if_objc )
161+ # define SWIFT_DEPRECATED_OBJC (Msg ) __attribute__((diagnose_if(1, Msg, "warning")))
162+ #else
163+ # define SWIFT_DEPRECATED_OBJC (Msg ) SWIFT_DEPRECATED_MSG(Msg)
164+ #endif
165+ #if __has_feature (modules )
135166#endif
136167
137168#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
138169#pragma clang diagnostic ignored "-Wduplicate-method-arg"
170+ #if __has_warning ("- Wpragma - clang - attribute ")
171+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
172+ #endif
173+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
174+ #pragma clang diagnostic ignored "-Wnullability"
175+
176+ #if __has_attribute (external_source_symbol )
177+ # pragma push_macro("any")
178+ # undef any
179+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="OHHTTPStubs",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
180+ # pragma pop_macro("any")
181+ #endif
182+
183+ #if __has_attribute (external_source_symbol )
184+ # pragma clang attribute pop
185+ #endif
139186#pragma clang diagnostic pop
0 commit comments