Last active
August 29, 2015 14:02
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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