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 {
182182
183183public struct PointerType : ClangTypeBacked {
184184 let clang : CXType
185+
186+ public var pointee : CType ? {
187+ return convertType ( clang_getPointeeType ( clang) )
188+ }
185189}
186190
187191public struct BlockPointerType : ClangTypeBacked {
@@ -222,6 +226,14 @@ public struct FunctionProtoType: ClangTypeBacked {
222226
223227public struct ConstantArrayType : ClangTypeBacked {
224228 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+ }
225237}
226238
227239public struct VectorType : ClangTypeBacked {
@@ -230,10 +242,18 @@ public struct VectorType: ClangTypeBacked {
230242
231243public struct IncompleteArrayType : ClangTypeBacked {
232244 let clang : CXType
245+
246+ public var element : CType ? {
247+ return convertType ( clang_getArrayElementType ( clang) )
248+ }
233249}
234250
235251public struct VariableArrayType : ClangTypeBacked {
236252 let clang : CXType
253+
254+ public var element : CType ? {
255+ return convertType ( clang_getArrayElementType ( clang) )
256+ }
237257}
238258
239259public struct DependentSizedArrayType : ClangTypeBacked {
You can’t perform that action at this time.
0 commit comments