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

Function HandleTypeDefDecl

Scripts/DefinitionExtract.py:425–442  ·  view source on GitHub ↗
(Arch, Cursor, Name)

Source from the content-addressed store, hash-verified

423 return Struct
424
425def HandleTypeDefDecl(Arch, Cursor, Name):
426 for Child in Cursor.get_children():
427 if (Child.kind == CursorKind.UNION_DECL):
428 pass
429 elif (Child.kind == CursorKind.STRUCT_DECL):
430 Arch = HandleStructDeclCursor(Arch, Child, Name)
431 elif (Child.kind == CursorKind.UNION_DECL):
432 Arch = HandleUnionDeclCursor(Arch, Child, Name)
433 elif (Child.kind == CursorKind.TYPEDEF_DECL):
434 Arch = HandleTypeDefDeclCursor(Arch, Child)
435 elif (Child.kind == CursorKind.TYPE_REF or
436 Child.kind == CursorKind.NAMESPACE_REF or
437 Child.kind == CursorKind.TEMPLATE_REF or
438 Child.kind == CursorKind.ALIGNED_ATTR):
439 # Safe to pass on
440 pass
441 else:
442 logging.critical ("Unhandled TypedefDecl {0}-{1}-{2}".format(Child.kind, Child.type.spelling, Child.spelling))
443
444def HandleCursor(Arch, Cursor):
445 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