Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add libclang capabilities to retriete template arguments from specializations. | Eli Bendersky | 2014-10-10 | 1 | -0/+44 | |
| | | | | | | | | | Includes Python bindings. Reviewed in http://reviews.llvm.org/D5621 Patch by Rob Springer llvm-svn: 219529 | |||||
* | Expose the name mangling C API to Python bindings. | Eli Bendersky | 2014-08-05 | 1 | -0/+14 | |
| | | | | llvm-svn: 214930 | |||||
* | Implement a convenience recursive walk method over a cursor and its descendants. | Eli Bendersky | 2014-05-29 | 1 | -29/+11 | |
| | | | | | | | | | | | | | Before r160106 there was a way to recursively visit all descendants of a cursor via Cursor_visit, but it was removed. Since then, every user needs to reimplement the recursive descent into get_children. Adding a walk_preorder() method to Cursor that conveniently implements recursive walking in a Pythonic way. This also greatly simplifies get_cursor and get_cursors in tests/cindex/util.py (walk_preorder is now tested through these utility functions, since they are used in many tests). llvm-svn: 209793 | |||||
* | cindex/test_cursor.py: no need to skip implicit decls in tests | Alp Toker | 2014-05-21 | 1 | -8/+1 | |
| | | | | | | | | | clang was fixed some time ago to always skip "builtins and other cruft" so tools no longer need hacks like this. Passes nosetests. llvm-svn: 209316 | |||||
* | bindings: expose C++ access specifiers | Saleem Abdulrasool | 2014-04-25 | 1 | -0/+34 | |
| | | | | | | | | | | Expose the enum CX_CXXAccessSpecifier in the python bindings as a property of the cursor. If access specifier is not applicable to the node, return the INVALID specifier rather than raising an exception. Patch by Tamás Szeli! llvm-svn: 207173 | |||||
* | [libclang/python] Use a Python standard library module to create a temporary ↵ | Argyrios Kyrtzidis | 2014-02-20 | 1 | -9/+2 | |
| | | | | | | | | file. Patch by Brian Gesiak! llvm-svn: 201762 | |||||
* | [libclang/python] Add CompilationDatabase.getAllCompileCommands to the ↵ | Argyrios Kyrtzidis | 2013-12-20 | 1 | -0/+21 | |
| | | | | | | | | python bindings. Patch by Laszlo Nagy! llvm-svn: 197765 | |||||
* | [libclang] Add some tests by Loïc Jaquemet that I forgot to add earlier. | Argyrios Kyrtzidis | 2013-10-07 | 1 | -0/+40 | |
| | | | | llvm-svn: 192108 | |||||
* | [libclang] python: expose a few functions, patch by Loïc Jaquemet! | Argyrios Kyrtzidis | 2013-10-03 | 1 | -0/+16 | |
| | | | | llvm-svn: 191907 | |||||
* | [libclang] Don't report a DecayedType as "unexposed", report it as the ↵ | Argyrios Kyrtzidis | 2013-09-16 | 1 | -0/+10 | |
| | | | | | | | | original (as written) type. Patch by Anders Waldenborg! llvm-svn: 190796 | |||||
* | [libclang] Expose the rest of the array types. | Argyrios Kyrtzidis | 2013-07-23 | 1 | -2/+10 | |
| | | | | | | Patch by Che-Liang Chiou! llvm-svn: 186967 | |||||
* | [libclang/python] Add a few "cursor kinds" that were missing in the python ↵ | Argyrios Kyrtzidis | 2013-06-11 | 1 | -2/+9 | |
| | | | | | | | | binding for libclang. Patch by Mathieu Baudet! llvm-svn: 183760 | |||||
* | [libclang] Expose record layout info via new libclang functions: | Argyrios Kyrtzidis | 2013-04-11 | 2 | -2/+65 | |
| | | | | | | | | | | | clang_Type_getAlignOf clang_Type_getSizeOf clang_Type_getOffsetOf clang_Cursor_isBitField Patch by Loïc Jaquemet! llvm-svn: 179251 | |||||
* | cindex.py: Handle NULL pointers when parsing translation units | Tobias Grosser | 2013-03-19 | 1 | -0/+17 | |
| | | | | | | | | | | | | | The code inside cindex.py was comparing NULL pointer returned by clang_parseTranslationUnit and clang_createTranslationUnit with None. However, as illustrated by the two tests I've added, those conditions were ineffective which resulted in assert triggering later on. Instead, a pointer is now treated as a boolean value, a NULL pointer being False. Contributed-by: Xavier Deguillard <deguilx@gmail.com> llvm-svn: 177408 | |||||
* | [python bindings] Expose cursor.referenced (clang_getCursorReferenced). | Argyrios Kyrtzidis | 2013-01-02 | 1 | -0/+9 | |
| | | | | | | Patch by Matthew King! llvm-svn: 171423 | |||||
* | [clang.py] Add Cursor.get_arguments() | Gregory Szorc | 2012-11-01 | 1 | -0/+9 | |
| | | | | | | Patch provided by Matthias Kleine <matthias_kleine@gmx.de> llvm-svn: 167216 | |||||
* | Python bindings: Add missing availability kind. | Benjamin Kramer | 2012-10-07 | 1 | -8/+48 | |
| | | | | | | Patch by Leo Liu, test case by me. llvm-svn: 165374 | |||||
* | Add bindings for clang_getCompletionBriefComment to cindex.py. | Dmitri Gribenko | 2012-09-15 | 1 | -0/+35 | |
| | | | | llvm-svn: 163966 | |||||
* | [clang.py] Implement Token API | Gregory Szorc | 2012-07-12 | 4 | -1/+128 | |
| | | | | llvm-svn: 160111 | |||||
* | [clang.py] Add TranslationUnit.get_{file,source_location,source_range} | Gregory Szorc | 2012-07-12 | 1 | -0/+66 | |
| | | | | llvm-svn: 160107 | |||||
* | [cindex.py] Make CompileCommand.arguments usage consistent with ↵ | Arnaud A. de Grandmaison | 2012-07-10 | 1 | -2/+2 | |
| | | | | | | | | CompileCommand.directory and the rest of the python binding Patch by David Röthlisberger llvm-svn: 159970 | |||||
* | [cindex.py] fix infinite iteration of compilation database CompileCommands | Arnaud A. de Grandmaison | 2012-07-09 | 1 | -0/+8 | |
| | | | | | | Patch by David Röthlisberger llvm-svn: 159926 | |||||
* | [cindex.py] Fix comments | Arnaud A. de Grandmaison | 2012-06-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 159492 | |||||
* | [cindex.py] add CompilationDatabase support | Arnaud A. de Grandmaison | 2012-06-30 | 2 | -0/+98 | |
| | | | | llvm-svn: 159485 | |||||
* | [clang.py] Implement SourceLocation.from_offset | Gregory Szorc | 2012-06-11 | 1 | -0/+9 | |
| | | | | llvm-svn: 158307 | |||||
* | [clang.py] Implement Cursor.is_static_method | Gregory Szorc | 2012-06-09 | 1 | -0/+16 | |
| | | | | llvm-svn: 158277 | |||||
* | [clang.py] Store reference to TranslationUnit in Cursor and Type | Gregory Szorc | 2012-05-15 | 2 | -0/+47 | |
| | | | | llvm-svn: 156846 | |||||
* | [clang.py] Implement Cursor.canonical | Gregory Szorc | 2012-05-14 | 1 | -0/+12 | |
| | | | | llvm-svn: 156753 | |||||
* | [clang.py] Implement Cursor.result_type | Gregory Szorc | 2012-05-14 | 1 | -0/+8 | |
| | | | | llvm-svn: 156752 | |||||
* | [clang.py] Remove trailing whitespace from recent commits | Gregory Szorc | 2012-05-08 | 1 | -3/+3 | |
| | | | | llvm-svn: 156373 | |||||
* | [clang.py] TranslationUnit API improvements | Gregory Szorc | 2012-05-08 | 2 | -20/+87 | |
| | | | | | | | | | | | | | | | | | * 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. llvm-svn: 156372 | |||||
* | - Adding lexical_parent and semantic_parent properties to clang.cindex.Cursor | Manuel Klimek | 2012-05-07 | 2 | -0/+54 | |
| | | | | | | | | | - 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. llvm-svn: 156286 | |||||
* | [python] Add testcase for annotation cursor | Anders Waldenborg | 2012-05-02 | 1 | -0/+12 | |
| | | | | llvm-svn: 156022 | |||||
* | [python] Add Cursor.enum_value wrapping clang_getEnumConstantDeclValue | Anders Waldenborg | 2012-05-02 | 1 | -0/+37 | |
| | | | | llvm-svn: 156017 | |||||
* | [python] Add testcase for enum with specified underlaying type | Anders Waldenborg | 2012-05-02 | 1 | -0/+8 | |
| | | | | llvm-svn: 156009 | |||||
* | [python] Run tests for c++ with std=c++11 | Anders Waldenborg | 2012-05-02 | 1 | -2/+3 | |
| | | | | llvm-svn: 156008 | |||||
* | [python] Fix warning in c-code inside testcase | Anders Waldenborg | 2012-05-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 156007 | |||||
* | [clang.py] Implement TypeKind.spelling | Gregory Szorc | 2012-04-15 | 1 | -1/+8 | |
| | | | | llvm-svn: 154769 | |||||
* | [clang.py] Implement Cursor.objc_type_encoding | Gregory Szorc | 2012-03-10 | 1 | -0/+7 | |
| | | | | llvm-svn: 152513 | |||||
* | [clang.py] Refactor get_tu and get_cursor test helper functions into util.py | Gregory Szorc | 2012-03-10 | 5 | -112/+130 | |
| | | | | llvm-svn: 152510 | |||||
* | [clang.py] Test Cursor.__ne__ | Gregory Szorc | 2012-02-26 | 1 | -0/+1 | |
| | | | | llvm-svn: 151504 | |||||
* | [clang.py] Format and add documention for Type | Gregory Szorc | 2012-02-20 | 1 | -0/+3 | |
| | | | | llvm-svn: 150972 | |||||
* | [clang.py] Add tests for Type.is_volatile_qualified and ↵ | Gregory Szorc | 2012-02-20 | 1 | -2/+45 | |
| | | | | | | Type.is_restrict_qualified llvm-svn: 150971 | |||||
* | [clang.py] Implement Type.argument_types() | Gregory Szorc | 2012-02-20 | 1 | -107/+135 | |
| | | | | llvm-svn: 150970 | |||||
* | [clang.py] Implement Type.__eq__ and Type.__ne__ | Gregory Szorc | 2012-02-20 | 1 | -0/+25 | |
| | | | | llvm-svn: 150969 | |||||
* | [clang.py] Implement Type.is_function_variadic | Gregory Szorc | 2012-02-19 | 1 | -18/+45 | |
| | | | | llvm-svn: 150936 | |||||
* | [clang.py] Implement Type.element_count | Gregory Szorc | 2012-02-17 | 1 | -0/+22 | |
| | | | | llvm-svn: 150800 | |||||
* | [clang.py] Implement Type.element_type | Gregory Szorc | 2012-02-17 | 1 | -1/+33 | |
| | | | | llvm-svn: 150799 | |||||
* | [clang.py] Implement Type.is_pod | Gregory Szorc | 2012-02-05 | 1 | -0/+18 | |
| | | | | llvm-svn: 149842 | |||||
* | [clang.py] Implement Cursor.enum_type | Tobias Grosser | 2012-02-05 | 1 | -0/+15 | |
| | | | | | | Contributed by: Gregory Szorc <gregory.szorc@gmail.com> llvm-svn: 149830 |