Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | cindex.py: Allow to create a cursor from file/row/column | Tobias Grosser | 2011-10-31 | 2 | -1/+29 | |
| | | | | | | | 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 | 2 | -0/+24 | |
| | | | | llvm-svn: 143321 | |||||
* | Add support for constant arrays, from Anders Waldenborg!. | Douglas Gregor | 2011-10-19 | 2 | -0/+24 | |
| | | | | llvm-svn: 142477 | |||||
* | Add TypeKind.CONSTANTARRAY, from Anders Waldenborg! | Douglas Gregor | 2011-10-19 | 2 | -1/+20 | |
| | | | | llvm-svn: 142476 | |||||
* | Fix error message for unknown type kind, from Anders Waldenborg! | Douglas Gregor | 2011-10-19 | 1 | -1/+1 | |
| | | | | llvm-svn: 142475 | |||||
* | This new field was introduced in clang-c in r141277 | Douglas Gregor | 2011-10-19 | 1 | -1/+1 | |
| | | | | | | | Python needs this in its structure definition so it allocates enough memory. From Anders Waldenborg! llvm-svn: 142474 | |||||
* | Expose more statement, expression, and declaration kinds in libclang, | Douglas Gregor | 2011-10-05 | 1 | -5/+262 | |
| | | | | | | from Manuel Holtgrewe! llvm-svn: 141200 | |||||
* | 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 | 2 | -0/+13 | |
| | | | | llvm-svn: 138785 | |||||
* | [python] Fix bug of the SourceLocation binding. | Argyrios Kyrtzidis | 2011-08-17 | 2 | -1/+51 | |
| | | | | | | 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 | 2 | -2/+210 | |
| | | | | | | Patch by Anders Waldenborg! llvm-svn: 137797 | |||||
* | Improve the Python bindings for libclang in a few ways, from Eli | Douglas Gregor | 2011-07-06 | 3 | -12/+33 | |
| | | | | | | | | | | | | | | | | | 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 different kind of completion chunks | Tobias Grosser | 2011-02-05 | 1 | -6/+81 | |
| | | | | llvm-svn: 124959 | |||||
* | python bindings: Get the string representation of a CompletionChunk | Tobias Grosser | 2011-02-05 | 1 | -9/+84 | |
| | | | | llvm-svn: 124958 | |||||
* | python bindings: Add CodeCompletionResults | Tobias Grosser | 2011-02-05 | 1 | -1/+94 | |
| | | | | llvm-svn: 124957 | |||||
* | python bindings: Add support for translationUnit.reparse(). | Tobias Grosser | 2011-02-05 | 2 | -6/+47 | |
| | | | | | | | | 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 | 2 | -0/+25 | |
| | | | | | | | 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 | |||||
* | python bindings: Use python Diagnostics as function arguments | Tobias Grosser | 2011-02-05 | 1 | -14/+17 | |
| | | | | | | | | | | | | This improves the readability of the code and fixes one testsuite bug. The bug happend, because we only stored the pointer to the diagnostic in the FixIt iterator, but not the python Diagnostic object. So it could happen that the FixIt iterator still exists, but the python Diagnostic object is freed. However, as the python Diagnostic is freed the pointer to the diagnostic is also freed and the FixIt iterator is referencing a freed pointer. llvm-svn: 124952 | |||||
* | python bindings: Synchronize cursor kinds | Tobias Grosser | 2011-02-05 | 1 | -0/+89 | |
| | | | | | | | clang-c/Index.h contained cursor kinds not yet available in the python bindings. Contributed-By: jmuizelaar@mozilla.com llvm-svn: 124951 | |||||
* | Rename 'CIndex' to 'libclang', since it has basically become our stable public | Daniel Dunbar | 2010-04-30 | 2 | -6/+5 | |
| | | | | | | (C) API, and will likely grow further in this direction in the future. llvm-svn: 102779 | |||||
* | Rename the new Iterator objects and raise an assertion instead of returning ↵ | Benjamin Kramer | 2010-03-06 | 1 | -10/+12 | |
| | | | | | | invalid objects when the key is out of range. llvm-svn: 97881 | |||||
* | Update the python bindings for recent changes in the CIndex API. | Benjamin Kramer | 2010-03-06 | 1 | -88/+88 | |
| | | | | llvm-svn: 97880 | |||||
* | CIndex: Switch CXSourceRange to proper half-open intervals. | Daniel Dunbar | 2010-02-14 | 1 | -1/+1 | |
| | | | | | | - Doug, please review. llvm-svn: 96162 | |||||
* | cindex/Python: Fix cindex-{dump,includes} examples to just pass all args | Daniel Dunbar | 2010-02-13 | 2 | -11/+5 | |
| | | | | | | | | | | | | | directly to Index, instead of requiring the input file to be first. This makes the examples behave more like 'clang'. For example, ddunbar@giles:tmp$ echo '#include <string>' | python ~/llvm/tools/clang/bindings/python/examples/cindex/cindex-includes.py -- -x c++ - | wc -l 114 ddunbar@giles:tmp$ echo '#include <stdio.h>' | python ~/llvm/tools/clang/bindings/python/examples/cindex/cindex-includes.py -- -x c - | wc -l 10 llvm-svn: 96107 | |||||
* | cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton! | Daniel Dunbar | 2010-02-13 | 7 | -0/+152 | |
| | | | | llvm-svn: 96106 | |||||
* | cindex/Python: Update for clang_getDiagnosticRange... API changes. | Daniel Dunbar | 2010-02-13 | 1 | -18/+9 | |
| | | | | llvm-svn: 96105 | |||||
* | cindex/Python: Turn off showing IDs by default, they are really slow to compute | Daniel Dunbar | 2010-01-31 | 1 | -3/+20 | |
| | | | | | | | pending a hash function. Also added a --max-depth argument, handy for timing and limiting the volume of output. llvm-svn: 94936 | |||||
* | cindex/Python: Add a simple example which dumps assorted information about a ↵ | Daniel Dunbar | 2010-01-30 | 1 | -0/+72 | |
| | | | | | | translation unit. llvm-svn: 94934 | |||||
* | cindex/Python: Add full support for Diagnostic and FixIt objects, available ↵ | Daniel Dunbar | 2010-01-30 | 2 | -11/+228 | |
| | | | | | | | | | | 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 SourceLocation and SourceRange structures to match API ↵ | Daniel Dunbar | 2010-01-30 | 1 | -2/+2 | |
| | | | | | | | | changes. Hurray for exposing implementation details!!! llvm-svn: 94932 | |||||
* | cindex/Python: Update Index.create for removal of displayDiagnostics. | Daniel Dunbar | 2010-01-30 | 2 | -5/+4 | |
| | | | | llvm-svn: 94931 | |||||
* | cindex/Python: Update to support _getInstantiationLocation's new offset value. | Daniel Dunbar | 2010-01-29 | 1 | -4/+10 | |
| | | | | llvm-svn: 94813 | |||||
* | cindex/Python: Move translation unit load functions to Index, there isn't a ↵ | Daniel Dunbar | 2010-01-25 | 1 | -35/+22 | |
| | | | | | | good reason to have separate static methods for this. llvm-svn: 94419 | |||||
* | cindex/Python: Support file objects as unsaved_files, albeit inefficiently. | Daniel Dunbar | 2010-01-25 | 2 | -2/+15 | |
| | | | | 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 | 2 | -3/+35 | |
| | | | | llvm-svn: 94396 | |||||
* | cindex/Python: Fix/simplify Index.parse() passing command line arguments. | Daniel Dunbar | 2010-01-25 | 3 | -37/+20 | |
| | | | | llvm-svn: 94394 | |||||
* | cindex/Python: Update comments, add module docstrings, add LLVM headers. | Daniel Dunbar | 2010-01-25 | 2 | -4/+90 | |
| | | | | llvm-svn: 94392 | |||||
* | cindex/Python: Move Cursor.is_ methods to CursorKind, and add test. | Daniel Dunbar | 2010-01-24 | 3 | -53/+88 | |
| | | | | | | Also, add CursorKind.get_all_kinds(). llvm-svn: 94389 | |||||
* | cindex/Python: Implement explicit objects for CursorKind enumeration values. | Daniel Dunbar | 2010-01-24 | 1 | -12/+183 | |
| | | | | llvm-svn: 94388 | |||||
* | cindex/Python: Fetch SourceLocation instantiation location information on ↵ | Daniel Dunbar | 2010-01-24 | 1 | -12/+29 | |
| | | | | | | | | lazily, it isn't free. Also, add repr() support to SourceRange. llvm-svn: 94387 | |||||
* | cindex/Python: Add Cursor.get_usr(). | Daniel Dunbar | 2010-01-24 | 1 | -3/+17 | |
| | | | | | | Also, change Cursor.spelling to return None for non-decls, for consistency with get_usr(). llvm-svn: 94386 | |||||
* | cindex/Python: Return null cursors as None instead of exposing this notion. | Daniel Dunbar | 2010-01-24 | 1 | -6/+15 | |
| | | | | llvm-svn: 94385 | |||||
* | cindex/Python: Convert CXString objects to regular Python strings below API. | Daniel Dunbar | 2010-01-24 | 2 | -18/+19 | |
| | | | | llvm-svn: 94384 | |||||
* | Simplify. | Daniel Dunbar | 2010-01-24 | 1 | -16/+11 | |
| | | | | llvm-svn: 94383 | |||||
* | cindex/Python: Remove Cursor.file forwarding method, this doesn't really fit ↵ | Daniel Dunbar | 2010-01-24 | 1 | -8/+0 | |
| | | | | | | the API. llvm-svn: 94382 | |||||
* | cindex/Python: Add Cursor.get_children() | Daniel Dunbar | 2010-01-24 | 1 | -3/+18 | |
| | | | | llvm-svn: 94359 |