summaryrefslogtreecommitdiff
path: root/bindings/python/tests/cindex/test_location.py
Commit message (Collapse)AuthorAge
* [clang.py] Implement SourceLocation.from_offsetGregory Szorc2012-06-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158307 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Refactor get_tu and get_cursor test helper functions into util.pyGregory Szorc2012-03-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152510 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement __eq__ and __ne__ on SourceLocation and SourceRangeTobias Grosser2012-02-05
| | | | | | | | | | 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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149824 91177308-0d34-0410-b5e6-96231b3b80d8
* cindex.py: Allow to create a cursor from file/row/columnTobias Grosser2011-10-31
| | | | | | | We add a constructor to create a SourceLocation from a position in a file and we use this SourceLocation to retrieve a cursor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143322 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Fix bug of the SourceLocation binding.Argyrios Kyrtzidis2011-08-17
Patch by Anders Waldenborg! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137829 91177308-0d34-0410-b5e6-96231b3b80d8