@@ -77,7 +77,7 @@ typedef void *swiftide_connection_t;
77
77
/// may be more expensive to compute.
78
78
typedef void * swiftide_completion_item_t ;
79
79
80
- typedef enum {
80
+ typedef enum swiftide_completion_kind_t : uint32_t {
81
81
SWIFTIDE_COMPLETION_KIND_NONE = 0 ,
82
82
SWIFTIDE_COMPLETION_KIND_IMPORT = 1 ,
83
83
SWIFTIDE_COMPLETION_KIND_UNRESOLVEDMEMBER = 2 ,
@@ -125,15 +125,15 @@ typedef enum {
125
125
SWIFTIDE_COMPLETION_KIND_TYPESIMPLEINVERTED = 44 ,
126
126
} swiftide_completion_kind_t ;
127
127
128
- typedef enum {
128
+ typedef enum swiftide_completion_item_kind_t : uint32_t {
129
129
SWIFTIDE_COMPLETION_ITEM_KIND_DECLARATION = 0 ,
130
130
SWIFTIDE_COMPLETION_ITEM_KIND_KEYWORD = 1 ,
131
131
SWIFTIDE_COMPLETION_ITEM_KIND_PATTERN = 2 ,
132
132
SWIFTIDE_COMPLETION_ITEM_KIND_LITERAL = 3 ,
133
133
SWIFTIDE_COMPLETION_ITEM_KIND_BUILTINOPERATOR = 4 ,
134
134
} swiftide_completion_item_kind_t ;
135
135
136
- typedef enum {
136
+ typedef enum swiftide_completion_item_decl_kind_t : uint32_t {
137
137
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MODULE = 0 ,
138
138
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_CLASS = 1 ,
139
139
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_STRUCT = 2 ,
@@ -161,7 +161,7 @@ typedef enum {
161
161
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MACRO = 24 ,
162
162
} swiftide_completion_item_decl_kind_t ;
163
163
164
- typedef enum {
164
+ typedef enum swiftide_completion_type_relation_t : uint32_t {
165
165
SWIFTIDE_COMPLETION_TYPE_RELATION_NOTAPPLICABLE = 0 ,
166
166
SWIFTIDE_COMPLETION_TYPE_RELATION_UNKNOWN = 1 ,
167
167
SWIFTIDE_COMPLETION_TYPE_RELATION_UNRELATED = 2 ,
@@ -170,7 +170,7 @@ typedef enum {
170
170
SWIFTIDE_COMPLETION_TYPE_RELATION_IDENTICAL = 5 ,
171
171
} swiftide_completion_type_relation_t ;
172
172
173
- typedef enum {
173
+ typedef enum swiftide_completion_semantic_context_t : uint32_t {
174
174
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_NONE = 0 ,
175
175
/* obsoleted */ SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_EXPRESSIONSPECIFIC = 1 ,
176
176
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_LOCAL = 2 ,
@@ -181,7 +181,7 @@ typedef enum {
181
181
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_OTHERMODULE = 7 ,
182
182
} swiftide_completion_semantic_context_t ;
183
183
184
- typedef enum {
184
+ typedef enum swiftide_completion_flair_t : uint32_t {
185
185
SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONSPECIFIC = 1 << 0 ,
186
186
SWIFTIDE_COMPLETION_FLAIR_SUPERCHAIN = 1 << 1 ,
187
187
SWIFTIDE_COMPLETION_FLAIR_ARGUMENTLABELS = 1 << 2 ,
@@ -191,7 +191,7 @@ typedef enum {
191
191
SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONATNONSCRIPTORMAINFILESCOPE = 1 << 6 ,
192
192
} swiftide_completion_flair_t ;
193
193
194
- typedef enum {
194
+ typedef enum swiftide_completion_not_recommended_reason_t : uint32_t {
195
195
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_NONE = 0 ,
196
196
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_REDUNDANT_IMPORT = 1 ,
197
197
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_DEPRECATED = 2 ,
@@ -204,7 +204,7 @@ typedef enum {
204
204
8 ,
205
205
} swiftide_completion_not_recommended_reason_t ;
206
206
207
- typedef enum {
207
+ typedef enum swiftide_completion_diagnostic_severity_t : uint32_t {
208
208
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_NONE = 0 ,
209
209
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_ERROR = 1 ,
210
210
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_WARNING = 2 ,
0 commit comments