Commit Graph

159 Commits

Author SHA1 Message Date
Daniel Dunbar 18b75a4f10 cindex/Python: Remove Cursor.file forwarding method, this doesn't really fit the API.
llvm-svn: 94382
2010-01-24 21:19:40 +00:00
Daniel Dunbar fd7caa25a6 cindex/Python: Add Cursor.get_children()
llvm-svn: 94359
2010-01-24 04:10:22 +00:00
Daniel Dunbar 7bcfd6eb6d cindex/Python: Remove Declaration class, this has been removed from the API.
llvm-svn: 94358
2010-01-24 04:10:06 +00:00
Daniel Dunbar 8f8f35bd6c cindex/Python: Eliminate Entity class, it has been removed from CIndex.
llvm-svn: 94357
2010-01-24 04:09:58 +00:00
Daniel Dunbar b34dde72e3 Simplify.
llvm-svn: 94356
2010-01-24 04:09:51 +00:00
Daniel Dunbar e79aba4c72 cindex/Python: Add TranslationUnit.cursor.
llvm-svn: 94355
2010-01-24 04:09:43 +00:00
Daniel Dunbar 3615fd27f2 cindex/Python: Tweak Source{Location,Range}
- Add __repr__ on SourceLocation.

 - Fix File object construction to use c_object_p type, and use None instead of
   invalid File objects.

 - Make SourceRange.{start,end} properties.

llvm-svn: 94354
2010-01-24 04:09:34 +00:00
Daniel Dunbar 3cdcfe03bf cindex/Python: Make Cursor.is_... functions not properties.
Also, add ValueError check before calling Cursor_spelling.

llvm-svn: 94353
2010-01-24 04:09:23 +00:00
Daniel Dunbar 74716e5ebd Initial checkin of CIndex Python bindings, by Andrew Sutton!
- Some tweaks by me for API changes, Darwin, and x86_64 support. Still needs
   substantial updating to match recent CIndex API changes.

llvm-svn: 94349
2010-01-24 02:02:07 +00:00