|
|
|
@ -35,7 +35,7 @@ def main():
|
|
|
|
if cursor.kind == CursorKind.CLASS_DECL and has_annotation(cursor, "export"):
|
|
|
|
if cursor.kind == CursorKind.CLASS_DECL and has_annotation(cursor, "export"):
|
|
|
|
print(f"Found exported class: {cursor.spelling}")
|
|
|
|
print(f"Found exported class: {cursor.spelling}")
|
|
|
|
for c in cursor.get_children():
|
|
|
|
for c in cursor.get_children():
|
|
|
|
if c.kind == CursorKind.CXX_METHOD:
|
|
|
|
if c.kind == CursorKind.CXX_METHOD and has_annotation(c, "export"):
|
|
|
|
is_virtual = c.is_virtual_method()
|
|
|
|
is_virtual = c.is_virtual_method()
|
|
|
|
print(f" method: {c.spelling} (virtual={is_virtual})")
|
|
|
|
print(f" method: {c.spelling} (virtual={is_virtual})")
|
|
|
|
|
|
|
|
|
|
|
|
|