Lines Matching defs:TypeKind
5 from clang.cindex import TypeKind
38 assert fields[0].type.kind == TypeKind.INT
39 assert fields[0].type.get_canonical().kind == TypeKind.INT
43 assert fields[1].type.kind == TypeKind.TYPEDEF
44 assert fields[1].type.get_canonical().kind == TypeKind.INT
49 assert fields[2].type.kind == TypeKind.LONG
50 assert fields[2].type.get_canonical().kind == TypeKind.LONG
54 assert fields[3].type.kind == TypeKind.ULONG
55 assert fields[3].type.get_canonical().kind == TypeKind.ULONG
59 assert fields[4].type.kind == TypeKind.LONG
60 assert fields[4].type.get_canonical().kind == TypeKind.LONG
64 assert fields[5].type.kind == TypeKind.INT
65 assert fields[5].type.get_canonical().kind == TypeKind.INT
69 assert fields[6].type.kind == TypeKind.POINTER
70 assert fields[6].type.get_pointee().kind == TypeKind.INT
74 assert fields[7].type.kind == TypeKind.POINTER
75 assert fields[7].type.get_pointee().kind == TypeKind.POINTER
76 assert fields[7].type.get_pointee().get_pointee().kind == TypeKind.POINTER
77 assert fields[7].type.get_pointee().get_pointee().get_pointee().kind == TypeKind.INT
111 assert fields[0].type.kind == TypeKind.CONSTANTARRAY
113 assert fields[0].type.get_array_element_type().kind == TypeKind.POINTER
152 """Ensure TypeKind.spelling works."""
171 assert t0.kind == TypeKind.INT
175 assert t1.kind == TypeKind.INT
264 assert c.type.kind == TypeKind.CONSTANTARRAY
265 assert c.type.element_type.kind == TypeKind.INT
266 assert i.type.kind == TypeKind.INCOMPLETEARRAY
267 assert i.type.element_type.kind == TypeKind.INT
268 assert v.type.kind == TypeKind.VARIABLEARRAY
269 assert v.type.element_type.kind == TypeKind.INT
404 assert a.kind == TypeKind.INCOMPLETEARRAY
405 assert a.element_type.kind == TypeKind.INT
406 assert a.get_canonical().kind == TypeKind.INCOMPLETEARRAY