MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / HandleTypeDefDecl

Function HandleTypeDefDecl

Scripts/StructPackVerifier.py:398–415  ·  view source on GitHub ↗
(Arch, Cursor, Name)

Source from the content-addressed store, hash-verified

396 return Struct
397
398def HandleTypeDefDecl(Arch, Cursor, Name):
399 for Child in Cursor.get_children():
400 if (Child.kind == CursorKind.UNION_DECL):
401 pass
402 elif (Child.kind == CursorKind.STRUCT_DECL):
403 Arch = HandleStructDeclCursor(Arch, Child, Name)
404 elif (Child.kind == CursorKind.UNION_DECL):
405 Arch = HandleUnionDeclCursor(Arch, Child, Name)
406 elif (Child.kind == CursorKind.TYPEDEF_DECL):
407 Arch = HandleTypeDefDeclCursor(Arch, Child)
408 elif (Child.kind == CursorKind.TYPE_REF or
409 Child.kind == CursorKind.NAMESPACE_REF or
410 Child.kind == CursorKind.TEMPLATE_REF or
411 Child.kind == CursorKind.ALIGNED_ATTR):
412 # Safe to pass on
413 pass
414 else:
415 logging.critical ("Unhandled TypedefDecl {0}-{1}-{2}".format(Child.kind, Child.type.spelling, Child.spelling))
416
417def HandleCursor(Arch, Cursor):
418 if (Cursor.kind.is_invalid()):

Callers 1

HandleTypeDefDeclCursorFunction · 0.70

Calls 4

HandleStructDeclCursorFunction · 0.70
HandleUnionDeclCursorFunction · 0.70
HandleTypeDefDeclCursorFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected