summaryrefslogtreecommitdiffstats
path: root/bindings/python
Commit message (Collapse)AuthorAgeFilesLines
...
* [cindex.py] Add CachedProperty to CompletionChunkTobias Grosser2012-08-191-3/+3
| | | | | | Suggested by: Francisco Lopes <oblita@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162191 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Add CachedProperty decoratorGregory Szorc2012-08-191-0/+25
| | | | | | It isn't used anywhere yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162190 91177308-0d34-0410-b5e6-96231b3b80d8
* [cindex.py] Use spaces, not tabs for indentationTobias Grosser2012-08-181-1/+1
| | | | | | Reported by: Francisco Lopes <oblita@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162182 91177308-0d34-0410-b5e6-96231b3b80d8
* [cindex.py] Dispose code completion results properlyTobias Grosser2012-08-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162181 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Token APIGregory Szorc2012-07-126-16/+345
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160111 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Add TranslationUnit.get_{file,source_location,source_range}Gregory Szorc2012-07-122-0/+127
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160107 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Refactor how ctypes functions are registeredGregory Szorc2012-07-121-589/+569
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160106 91177308-0d34-0410-b5e6-96231b3b80d8
* [cindex.py] Make CompileCommand.arguments usage consistent with ↵Arnaud A. de Grandmaison2012-07-102-3/+5
| | | | | | | | CompileCommand.directory and the rest of the python binding Patch by David Röthlisberger git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159970 91177308-0d34-0410-b5e6-96231b3b80d8
* [cindex.py] fix infinite iteration of compilation database CompileCommandsArnaud A. de Grandmaison2012-07-092-1/+9
| | | | | | Patch by David Röthlisberger git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159926 91177308-0d34-0410-b5e6-96231b3b80d8
* [cindex.py] Fix erroneous comment for CompileCommandsArnaud A. de Grandmaison2012-07-061-3/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159810 91177308-0d34-0410-b5e6-96231b3b80d8
* [libclang] CompilationDatabase naming and comment fixesArnaud A. de Grandmaison2012-07-031-9/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159682 91177308-0d34-0410-b5e6-96231b3b80d8
* [cindex.py] Fix commentsArnaud A. de Grandmaison2012-06-302-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159492 91177308-0d34-0410-b5e6-96231b3b80d8
* [cindex.py] add CompilationDatabase supportArnaud A. de Grandmaison2012-06-303-0/+251
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159485 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement SourceLocation.from_offsetGregory Szorc2012-06-112-0/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158307 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Cursor.is_static_methodGregory Szorc2012-06-092-0/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158277 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo "CursorKind.CONDITONAL_OPERATOR" in Python bindings, fromDouglas Gregor2012-06-081-1/+1
| | | | | | | Manish Verma! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158182 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Store reference to TranslationUnit in Cursor and TypeGregory Szorc2012-05-153-1/+96
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156846 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Cursor.canonicalGregory Szorc2012-05-142-0/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156753 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Cursor.result_typeGregory Szorc2012-05-142-0/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156752 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Followup to TranslationUnit refactorGregory Szorc2012-05-121-2/+5
| | | | | | | | | * Document index argument in TranslationUnit.from_source * Add numeric error code to TranslationUnitSaveError string representation * Use None instead of [] for default argument value in TranslationUnit.codeComplete git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156722 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Remove trailing whitespace from recent commitsGregory Szorc2012-05-082-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156373 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] TranslationUnit API improvementsGregory Szorc2012-05-083-63/+325
| | | | | | | | | | | | | | | | | * TranslationUnit reading and parsing now implemented as TranslationUnit.from_ast() and TranslationUnit.from_source(). * Index.parse() and Index.read() implemented through above. * Index.parse() and Index.read() now raise a TanslationUnitLoadException instead of returning None if a TranslationUnit could not be instantiated. This is backwards incompatible. * Ability to save TranslationUnits via TranslationUnit.save(). * TranslationUnit now holds onto Index instance that created. This means the Index can't be GC'd until the TranslationUnit is itself GC'd, making memory management thoughtless. * Don't use [] as a default argument value, as the initial value used is reused for the duration of the program. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156372 91177308-0d34-0410-b5e6-96231b3b80d8
* - Adding lexical_parent and semantic_parent properties to clang.cindex.CursorManuel Klimek2012-05-073-0/+80
| | | | | | | | | | | - Two new tests (one for each property), require libclang built from r155858 or later to pass - New test utility function (get_cursors) that gets all the nodes with a specific spelling. Patch by Evan Pipho. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156286 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Add testcase for annotation cursorAnders Waldenborg2012-05-021-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156022 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Add Cursor.enum_value wrapping clang_getEnumConstantDeclValueAnders Waldenborg2012-05-022-0/+69
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156017 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Add testcase for enum with specified underlaying typeAnders Waldenborg2012-05-021-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156009 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Run tests for c++ with std=c++11Anders Waldenborg2012-05-021-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156008 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Fix warning in c-code inside testcaseAnders Waldenborg2012-05-021-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156007 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement TypeKind.spellingGregory Szorc2012-04-152-1/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154769 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Cursor.objc_type_encodingGregory Szorc2012-03-102-0/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152513 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Refactor get_tu and get_cursor test helper functions into util.pyGregory Szorc2012-03-105-112/+130
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152510 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Return bool from Cursor.__eq__Gregory Szorc2012-03-051-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152011 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Test Cursor.__ne__Gregory Szorc2012-02-261-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151504 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Format and add documention for TypeGregory Szorc2012-02-202-11/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150972 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Add tests for Type.is_volatile_qualified and ↵Gregory Szorc2012-02-201-2/+45
| | | | | | Type.is_restrict_qualified git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150971 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Type.argument_types()Gregory Szorc2012-02-202-107/+183
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150970 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Type.__eq__ and Type.__ne__Gregory Szorc2012-02-202-0/+38
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150969 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Type.is_function_variadicGregory Szorc2012-02-192-18/+55
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150936 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Type.element_countGregory Szorc2012-02-172-0/+40
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150800 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Type.element_typeGregory Szorc2012-02-172-1/+51
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150799 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Type.is_podGregory Szorc2012-02-052-0/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149842 91177308-0d34-0410-b5e6-96231b3b80d8
* [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149831 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Cursor.enum_typeTobias Grosser2012-02-052-0/+33
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149830 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Cursor.underlying_typedef_typeTobias Grosser2012-02-052-0/+33
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149829 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] add TypeKind.VECTORTobias Grosser2012-02-051-0/+1
| | | | | | | | Added a missing enumeration. Contributed by: Gregory Szorc <gregory.szorc@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149828 91177308-0d34-0410-b5e6-96231b3b80d8
* [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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149827 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Implement Cursor.hashTobias Grosser2012-02-052-0/+13
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149826 91177308-0d34-0410-b5e6-96231b3b80d8
* [clang.py] Expose diagnostic category and option info to Python bindingTobias Grosser2012-02-052-3/+68
| | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149825 91177308-0d34-0410-b5e6-96231b3b80d8
* [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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149824 91177308-0d34-0410-b5e6-96231b3b80d8
* 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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147378 91177308-0d34-0410-b5e6-96231b3b80d8