summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/tests/cindex
Commit message (Collapse)AuthorAgeFilesLines
...
* [clang.py] Implement Cursor.underlying_typedef_typeTobias Grosser2012-02-051-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 Grosser2012-02-051-0/+9
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149827
* [clang.py] Implement Cursor.hashTobias Grosser2012-02-051-0/+1
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149826
* [clang.py] Expose diagnostic category and option info to Python bindingTobias Grosser2012-02-051-3/+31
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149825
* [clang.py] Implement __eq__ and __ne__ on SourceLocation and SourceRangeTobias Grosser2012-02-051-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/columnTobias Grosser2011-10-311-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 Grosser2011-10-311-0/+9
| | | | llvm-svn: 143321
* Add support for constant arrays, from Anders Waldenborg!.Douglas Gregor2011-10-191-0/+4
| | | | llvm-svn: 142477
* Add TypeKind.CONSTANTARRAY, from Anders Waldenborg!Douglas Gregor2011-10-191-0/+19
| | | | llvm-svn: 142476
* Update python testcase for GNU old-style field designator warning,Douglas Gregor2011-08-301-1/+1
| | | | | | from Anders Waldenborg! llvm-svn: 138786
* Add support for Cursor.displayname in python bindings, from Anders Waldenborg!Douglas Gregor2011-08-301-0/+2
| | | | llvm-svn: 138785
* [python] Fix bug of the SourceLocation binding.Argyrios Kyrtzidis2011-08-171-0/+50
| | | | | | Patch by Anders Waldenborg! llvm-svn: 137829
* [python] Add test_type.py by Anders Waldenborg, which I forgot to commit in ↵Argyrios Kyrtzidis2011-08-171-0/+76
| | | | | | r137797. llvm-svn: 137828
* [python] Add support for CXType to python bindings.Argyrios Kyrtzidis2011-08-171-1/+3
| | | | | | Patch by Anders Waldenborg! llvm-svn: 137797
* Improve the Python bindings for libclang in a few ways, from EliDouglas Gregor2011-07-062-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 Grosser2011-02-051-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 Grosser2011-02-051-4/+3
| | | | llvm-svn: 124955
* python bindings: Remove unneeded instructionTobias Grosser2011-02-051-2/+0
| | | | llvm-svn: 124954
* python bindings: fix Diagnostics.range iteratorTobias Grosser2011-02-051-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 Dunbar2010-02-141-1/+1
| | | | | | - Doug, please review. llvm-svn: 96162
* cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton!Daniel Dunbar2010-02-135-0/+42
| | | | llvm-svn: 96106
* cindex/Python: Add full support for Diagnostic and FixIt objects, available ↵Daniel Dunbar2010-01-301-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 Dunbar2010-01-301-1/+1
| | | | llvm-svn: 94931
* cindex/Python: Support file objects as unsaved_files, albeit inefficiently.Daniel Dunbar2010-01-251-0/+8
| | | | llvm-svn: 94418
* cindex/Python: Add Cursor test.Daniel Dunbar2010-01-251-0/+59
| | | | llvm-svn: 94397
* cindex/Python: Implement support for unsaved/remapped files.Daniel Dunbar2010-01-251-0/+17
| | | | llvm-svn: 94396
* cindex/Python: Fix/simplify Index.parse() passing command line arguments.Daniel Dunbar2010-01-252-0/+10
| | | | llvm-svn: 94394
* cindex/Python: Move Cursor.is_ methods to CursorKind, and add test.Daniel Dunbar2010-01-242-1/+28
| | | | | | Also, add CursorKind.get_all_kinds(). llvm-svn: 94389
* cindex/Python: Convert CXString objects to regular Python strings below API.Daniel Dunbar2010-01-241-1/+1
| | | | llvm-svn: 94384
* cindex/Python: Add TranslationUnit.cursor.Daniel Dunbar2010-01-241-0/+8
| | | | llvm-svn: 94355
* Initial checkin of CIndex Python bindings, by Andrew Sutton!Daniel Dunbar2010-01-244-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
OpenPOWER on IntegriCloud