Skip to content

Instantly share code, notes, and snippets.

@berkus
Last active August 29, 2015 14:02
Show Gist options
  • Save berkus/4f3a6d1a25ccfddceedf to your computer and use it in GitHub Desktop.
Save berkus/4f3a6d1a25ccfddceedf to your computer and use it in GitHub Desktop.
Get class name in libclang.py See http://szelei.me/code-generator/ for details.
for c in translation_unit.cursor.get_children():
if (c.kind == clang.cindex.CursorKind.CLASS_DECL):
className = c.spelling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment