Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [python] Add testcase for enum with specified underlaying type | Anders Waldenborg | 2012-05-02 | 1 | -0/+8 | |
| | | | | llvm-svn: 156009 | |||||
* | [python] Run tests for c++ with std=c++11 | Anders Waldenborg | 2012-05-02 | 1 | -2/+3 | |
| | | | | llvm-svn: 156008 | |||||
* | [python] Fix warning in c-code inside testcase | Anders Waldenborg | 2012-05-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 156007 | |||||
* | [clang.py] Implement TypeKind.spelling | Gregory Szorc | 2012-04-15 | 1 | -1/+8 | |
| | | | | llvm-svn: 154769 | |||||
* | [clang.py] Implement Cursor.objc_type_encoding | Gregory Szorc | 2012-03-10 | 1 | -0/+7 | |
| | | | | llvm-svn: 152513 | |||||
* | [clang.py] Refactor get_tu and get_cursor test helper functions into util.py | Gregory Szorc | 2012-03-10 | 5 | -112/+130 | |
| | | | | llvm-svn: 152510 | |||||
* | [clang.py] Test Cursor.__ne__ | Gregory Szorc | 2012-02-26 | 1 | -0/+1 | |
| | | | | llvm-svn: 151504 | |||||
* | [clang.py] Format and add documention for Type | Gregory Szorc | 2012-02-20 | 1 | -0/+3 | |
| | | | | llvm-svn: 150972 | |||||
* | [clang.py] Add tests for Type.is_volatile_qualified and ↵ | Gregory Szorc | 2012-02-20 | 1 | -2/+45 | |
| | | | | | | Type.is_restrict_qualified llvm-svn: 150971 | |||||
* | [clang.py] Implement Type.argument_types() | Gregory Szorc | 2012-02-20 | 1 | -107/+135 | |
| | | | | llvm-svn: 150970 | |||||
* | [clang.py] Implement Type.__eq__ and Type.__ne__ | Gregory Szorc | 2012-02-20 | 1 | -0/+25 | |
| | | | | llvm-svn: 150969 | |||||
* | [clang.py] Implement Type.is_function_variadic | Gregory Szorc | 2012-02-19 | 1 | -18/+45 | |
| | | | | llvm-svn: 150936 | |||||
* | [clang.py] Implement Type.element_count | Gregory Szorc | 2012-02-17 | 1 | -0/+22 | |
| | | | | llvm-svn: 150800 | |||||
* | [clang.py] Implement Type.element_type | Gregory Szorc | 2012-02-17 | 1 | -1/+33 | |
| | | | | llvm-svn: 150799 | |||||
* | [clang.py] Implement Type.is_pod | Gregory Szorc | 2012-02-05 | 1 | -0/+18 | |
| | | | | llvm-svn: 149842 | |||||
* | [clang.py] Implement Cursor.enum_type | Tobias Grosser | 2012-02-05 | 1 | -0/+15 | |
| | | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149830 | |||||
* | [clang.py] Implement Cursor.underlying_typedef_type | Tobias Grosser | 2012-02-05 | 1 | -0/+15 | |
| | | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149829 | |||||
* | [clang.py] Add CursorKind.{is_translation_unit, is_preprocessing, is_unexposed} | Tobias Grosser | 2012-02-05 | 1 | -0/+9 | |
| | | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149827 | |||||
* | [clang.py] Implement Cursor.hash | Tobias Grosser | 2012-02-05 | 1 | -0/+1 | |
| | | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149826 | |||||
* | [clang.py] Expose diagnostic category and option info to Python binding | Tobias Grosser | 2012-02-05 | 1 | -3/+31 | |
| | | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149825 | |||||
* | [clang.py] Implement __eq__ and __ne__ on SourceLocation and SourceRange | Tobias Grosser | 2012-02-05 | 1 | -1/+19 | |
| | | | | | | | | | | There is no type checking in __eq__, so ctypes will throw if the wrong Python type is passed in to the C function. Personally, I feel garbage in means garbage out and it isn't worth testing for this explicitly. Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149824 | |||||
* | cindex.py: Allow to create a cursor from file/row/column | Tobias Grosser | 2011-10-31 | 1 | -1/+13 | |
| | | | | | | | We add a constructor to create a SourceLocation from a position in a file and we use this SourceLocation to retrieve a cursor. llvm-svn: 143322 | |||||
* | cindex.py: Add File.create_from_name() | Tobias Grosser | 2011-10-31 | 1 | -0/+9 | |
| | | | | llvm-svn: 143321 | |||||
* | Add support for constant arrays, from Anders Waldenborg!. | Douglas Gregor | 2011-10-19 | 1 | -0/+4 | |
| | | | | llvm-svn: 142477 | |||||
* | Add TypeKind.CONSTANTARRAY, from Anders Waldenborg! | Douglas Gregor | 2011-10-19 | 1 | -0/+19 | |
| | | | | llvm-svn: 142476 | |||||
* | Update python testcase for GNU old-style field designator warning, | Douglas Gregor | 2011-08-30 | 1 | -1/+1 | |
| | | | | | | from Anders Waldenborg! llvm-svn: 138786 | |||||
* | Add support for Cursor.displayname in python bindings, from Anders Waldenborg! | Douglas Gregor | 2011-08-30 | 1 | -0/+2 | |
| | | | | llvm-svn: 138785 | |||||
* | [python] Fix bug of the SourceLocation binding. | Argyrios Kyrtzidis | 2011-08-17 | 1 | -0/+50 | |
| | | | | | | Patch by Anders Waldenborg! llvm-svn: 137829 | |||||
* | [python] Add test_type.py by Anders Waldenborg, which I forgot to commit in ↵ | Argyrios Kyrtzidis | 2011-08-17 | 1 | -0/+76 | |
| | | | | | | r137797. llvm-svn: 137828 | |||||
* | [python] Add support for CXType to python bindings. | Argyrios Kyrtzidis | 2011-08-17 | 1 | -1/+3 | |
| | | | | | | Patch by Anders Waldenborg! llvm-svn: 137797 | |||||
* | Improve the Python bindings for libclang in a few ways, from Eli | Douglas Gregor | 2011-07-06 | 2 | -8/+15 | |
| | | | | | | | | | | | | | | | | | Bendersky. Specifically: * Implemented a new function in libclang: clang_isAttribute * Fixing TranslationUnit.get_includes to only go through the argument * buffer when it contains something. This fixed a crash on Windows * clang_getFileName returns CXString, not char*. Made appropriate * fixes in cindex.py - now the relevant tests pass and we can see the * full locations correctly again (previously there was garbage in * place of the file name) * Exposed clang_getCursorDisplayName to the python bindings llvm-svn: 134460 | |||||
* | python bindings: Add support for translationUnit.reparse(). | Tobias Grosser | 2011-02-05 | 1 | -0/+9 | |
| | | | | | | | | This is the first step to make the clang_complete vim plugin work with libclang. Reparsing improves parsing time from 0.8 to 0.25 secs for one of my LLVM .cpp files. llvm-svn: 124956 | |||||
* | python bindings: Include local headers the right way. | Tobias Grosser | 2011-02-05 | 1 | -4/+3 | |
| | | | | llvm-svn: 124955 | |||||
* | python bindings: Remove unneeded instruction | Tobias Grosser | 2011-02-05 | 1 | -2/+0 | |
| | | | | llvm-svn: 124954 | |||||
* | python bindings: fix Diagnostics.range iterator | Tobias Grosser | 2011-02-05 | 1 | -0/+23 | |
| | | | | | | | The iterator did never throw an IndexError. It was therefore not possible to use it in a normal foreach loop as that loop would never stop. llvm-svn: 124953 | |||||
* | CIndex: Switch CXSourceRange to proper half-open intervals. | Daniel Dunbar | 2010-02-14 | 1 | -1/+1 | |
| | | | | | | - Doug, please review. llvm-svn: 96162 | |||||
* | cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton! | Daniel Dunbar | 2010-02-13 | 5 | -0/+42 | |
| | | | | llvm-svn: 96106 | |||||
* | cindex/Python: Add full support for Diagnostic and FixIt objects, available ↵ | Daniel Dunbar | 2010-01-30 | 1 | -0/+48 | |
| | | | | | | | | | | via TranslationUnit.diagnostics. Several important FIXMEs remain: - We aren't getting all the notes? - There is still no way to get diagnostics for invalid inputs. llvm-svn: 94933 | |||||
* | cindex/Python: Update Index.create for removal of displayDiagnostics. | Daniel Dunbar | 2010-01-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 94931 | |||||
* | cindex/Python: Support file objects as unsaved_files, albeit inefficiently. | Daniel Dunbar | 2010-01-25 | 1 | -0/+8 | |
| | | | | llvm-svn: 94418 | |||||
* | cindex/Python: Add Cursor test. | Daniel Dunbar | 2010-01-25 | 1 | -0/+59 | |
| | | | | llvm-svn: 94397 | |||||
* | cindex/Python: Implement support for unsaved/remapped files. | Daniel Dunbar | 2010-01-25 | 1 | -0/+17 | |
| | | | | llvm-svn: 94396 | |||||
* | cindex/Python: Fix/simplify Index.parse() passing command line arguments. | Daniel Dunbar | 2010-01-25 | 2 | -0/+10 | |
| | | | | llvm-svn: 94394 | |||||
* | cindex/Python: Move Cursor.is_ methods to CursorKind, and add test. | Daniel Dunbar | 2010-01-24 | 2 | -1/+28 | |
| | | | | | | Also, add CursorKind.get_all_kinds(). llvm-svn: 94389 | |||||
* | cindex/Python: Convert CXString objects to regular Python strings below API. | Daniel Dunbar | 2010-01-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 94384 | |||||
* | cindex/Python: Add TranslationUnit.cursor. | Daniel Dunbar | 2010-01-24 | 1 | -0/+8 | |
| | | | | llvm-svn: 94355 | |||||
* | Initial checkin of CIndex Python bindings, by Andrew Sutton! | Daniel Dunbar | 2010-01-24 | 5 | -0/+31 | |
- 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 |