summaryrefslogtreecommitdiffstats
path: root/clang/bindings
Commit message (Collapse)AuthorAgeFilesLines
...
* [clang.py] Format and add documention for TypeGregory Szorc2012-02-202-11/+14
| | | | llvm-svn: 150972
* [clang.py] Add tests for Type.is_volatile_qualified and ↵Gregory Szorc2012-02-201-2/+45
| | | | | | Type.is_restrict_qualified llvm-svn: 150971
* [clang.py] Implement Type.argument_types()Gregory Szorc2012-02-202-107/+183
| | | | llvm-svn: 150970
* [clang.py] Implement Type.__eq__ and Type.__ne__Gregory Szorc2012-02-202-0/+38
| | | | llvm-svn: 150969
* [clang.py] Implement Type.is_function_variadicGregory Szorc2012-02-192-18/+55
| | | | llvm-svn: 150936
* [clang.py] Implement Type.element_countGregory Szorc2012-02-172-0/+40
| | | | llvm-svn: 150800
* [clang.py] Implement Type.element_typeGregory Szorc2012-02-172-1/+51
| | | | llvm-svn: 150799
* [clang.py] Implement Type.is_podGregory Szorc2012-02-052-0/+26
| | | | llvm-svn: 149842
* [clang.py] Change type -> TypeTobias Grosser2012-02-051-4/+3
| | | | | | | Names that have corresponding classes in python are commonly started with an uppercase letter. Let's follow that convention. llvm-svn: 149831
* [clang.py] Implement Cursor.enum_typeTobias Grosser2012-02-052-0/+33
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149830
* [clang.py] Implement Cursor.underlying_typedef_typeTobias Grosser2012-02-052-0/+33
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149829
* [clang.py] add TypeKind.VECTORTobias Grosser2012-02-051-0/+1
| | | | | | | | Added a missing enumeration. Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149828
* [clang.py] Add CursorKind.{is_translation_unit, is_preprocessing, is_unexposed}Tobias Grosser2012-02-052-0/+33
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149827
* [clang.py] Implement Cursor.hashTobias Grosser2012-02-052-0/+13
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149826
* [clang.py] Expose diagnostic category and option info to Python bindingTobias Grosser2012-02-052-3/+68
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149825
* [clang.py] Implement __eq__ and __ne__ on SourceLocation and SourceRangeTobias Grosser2012-02-052-1/+39
| | | | | | | | | | 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
* Add CXX_FINAL_ATTR, CXX_OVERRIDE_ATTR, ANNOTATE_ATTR and ASM_LABEL_ATTR to theRafael Espindola2011-12-301-0/+5
| | | | | | | python bindinds. patch by Tom Schuster! llvm-svn: 147378
* Mass rename C1x references to C11. The name hasn't proliferated like "C++0x" ↵Benjamin Kramer2011-12-231-1/+1
| | | | | | | | so this patch is surprisingly small. Also drop -Wc1x-extensions in favor of -Wc11-extensions. I don't think we need to keep this around for compatibility. llvm-svn: 147221
* cindex.py: Remove more ternary operator + whitespace fixesTobias Grosser2011-10-311-6/+11
| | | | | | | Another batch of ternary operators and some whitespace fixes (Getting in sync with the clang_complete version of this file) llvm-svn: 143330
* clang.py: Remove use of ternary operatorsTobias Grosser2011-10-311-2/+9
| | | | | | This change is necessary to make this file python 2.4 compatible. llvm-svn: 143324
* cindex.py: Allow to create a cursor from file/row/columnTobias Grosser2011-10-312-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 Grosser2011-10-312-0/+24
| | | | llvm-svn: 143321
* Add support for constant arrays, from Anders Waldenborg!.Douglas Gregor2011-10-192-0/+24
| | | | llvm-svn: 142477
* Add TypeKind.CONSTANTARRAY, from Anders Waldenborg!Douglas Gregor2011-10-192-1/+20
| | | | llvm-svn: 142476
* Fix error message for unknown type kind, from Anders Waldenborg!Douglas Gregor2011-10-191-1/+1
| | | | llvm-svn: 142475
* This new field was introduced in clang-c in r141277Douglas Gregor2011-10-191-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 Gregor2011-10-051-5/+262
| | | | | | from Manuel Holtgrewe! llvm-svn: 141200
* 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-302-0/+13
| | | | llvm-svn: 138785
* [python] Fix bug of the SourceLocation binding.Argyrios Kyrtzidis2011-08-172-1/+51
| | | | | | 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-172-2/+210
| | | | | | Patch by Anders Waldenborg! llvm-svn: 137797
* Improve the Python bindings for libclang in a few ways, from EliDouglas Gregor2011-07-063-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 chunksTobias Grosser2011-02-051-6/+81
| | | | llvm-svn: 124959
* python bindings: Get the string representation of a CompletionChunkTobias Grosser2011-02-051-9/+84
| | | | llvm-svn: 124958
* python bindings: Add CodeCompletionResultsTobias Grosser2011-02-051-1/+94
| | | | llvm-svn: 124957
* python bindings: Add support for translationUnit.reparse().Tobias Grosser2011-02-052-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 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-052-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 argumentsTobias Grosser2011-02-051-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 kindsTobias Grosser2011-02-051-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 publicDaniel Dunbar2010-04-302-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 Kramer2010-03-061-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 Kramer2010-03-061-88/+88
| | | | llvm-svn: 97880
* CIndex: Switch CXSourceRange to proper half-open intervals.Daniel Dunbar2010-02-141-1/+1
| | | | | | - Doug, please review. llvm-svn: 96162
* cindex/Python: Fix cindex-{dump,includes} examples to just pass all argsDaniel Dunbar2010-02-132-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 Dunbar2010-02-137-0/+152
| | | | llvm-svn: 96106
* cindex/Python: Update for clang_getDiagnosticRange... API changes.Daniel Dunbar2010-02-131-18/+9
| | | | llvm-svn: 96105
* cindex/Python: Turn off showing IDs by default, they are really slow to computeDaniel Dunbar2010-01-311-3/+20
| | | | | | | pending a hash function. Also added a --max-depth argument, handy for timing and limiting the volume of output. llvm-svn: 94936
OpenPOWER on IntegriCloud