31
31
#define _Nullable
32
32
#endif
33
33
34
- //===----------------------------------------------------------------------===//
35
- // Diagnostic Engine
36
- //===----------------------------------------------------------------------===//
37
-
38
- #ifndef __has_attribute // Optional of course.
39
- #define __has_attribute (x ) 0 // Compatibility with non-clang compilers.
40
- #endif
41
-
42
- // TODO: Move this to somewhere common header.
43
- #if __has_attribute (enum_extensibility )
44
- #define ENUM_EXTENSIBILITY_ATTR (arg ) __attribute__((enum_extensibility(arg)))
45
- #else
46
- #define ENUM_EXTENSIBILITY_ATTR (arg )
47
- #endif
48
-
49
- // NOTE: This must be the same underlying value as C++ 'swift::DiagID' defined
50
- // in 'DiagnosticList.cpp'.
51
- typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedDiagID : unsigned {
52
- #define DIAG (KIND , ID , Options , Text , Signature ) BridgedDiagID_##ID,
53
- #include "swift/AST/DiagnosticsAll.def"
54
- } BridgedDiagID ;
55
-
56
34
SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
57
35
58
36
typedef long SwiftInt ;
@@ -68,14 +46,6 @@ typedef struct {
68
46
SwiftInt byteLength ;
69
47
} BridgedCharSourceRange ;
70
48
71
- // FIXME: Can we bridge InFlightDiagnostic?
72
- void DiagnosticEngine_diagnose (void * , void * loc , BridgedDiagID diagID ,
73
- BridgedArrayRef arguments ,
74
- BridgedCharSourceRange highlight ,
75
- BridgedArrayRef fixIts );
76
-
77
- int DiagnosticEngine_hadAnyError (void * );
78
-
79
49
typedef void * BridgedIdentifier ;
80
50
81
51
#ifdef __cplusplus
0 commit comments