File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ public struct ComplexType: ClangTypeBacked {
182
182
183
183
public struct PointerType : ClangTypeBacked {
184
184
let clang : CXType
185
+
186
+ public var pointee : CType ? {
187
+ return convertType ( clang_getPointeeType ( clang) )
188
+ }
185
189
}
186
190
187
191
public struct BlockPointerType : ClangTypeBacked {
@@ -222,6 +226,14 @@ public struct FunctionProtoType: ClangTypeBacked {
222
226
223
227
public struct ConstantArrayType : ClangTypeBacked {
224
228
let clang : CXType
229
+
230
+ public var element : CType ? {
231
+ return convertType ( clang_getArrayElementType ( clang) )
232
+ }
233
+
234
+ public var count : Int32 {
235
+ return clang_getNumArgTypes ( clang)
236
+ }
225
237
}
226
238
227
239
public struct VectorType : ClangTypeBacked {
@@ -230,10 +242,18 @@ public struct VectorType: ClangTypeBacked {
230
242
231
243
public struct IncompleteArrayType : ClangTypeBacked {
232
244
let clang : CXType
245
+
246
+ public var element : CType ? {
247
+ return convertType ( clang_getArrayElementType ( clang) )
248
+ }
233
249
}
234
250
235
251
public struct VariableArrayType : ClangTypeBacked {
236
252
let clang : CXType
253
+
254
+ public var element : CType ? {
255
+ return convertType ( clang_getArrayElementType ( clang) )
256
+ }
237
257
}
238
258
239
259
public struct DependentSizedArrayType : ClangTypeBacked {
You can’t perform that action at this time.
0 commit comments