651f13cea278ec967336033dd032faef0e9fc2ec |
|
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Updated to Clang 3.5a. Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
11d6cd318df1459ed57b26912d5c7a5cf2c2f091 |
|
19-Mar-2013 |
Tobias Grosser <grosser@fim.uni-passau.de> |
cindex.py: Handle NULL pointers when parsing translation units 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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
be51e43ba2c57b8032286af4e8713485b6dc78c3 |
|
12-Jul-2012 |
Gregory Szorc <gregory.szorc@gmail.com> |
[clang.py] Implement Token API git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
0f1964a5c1627bcc3fd658cdd1f139e30b0ad612 |
|
12-Jul-2012 |
Gregory Szorc <gregory.szorc@gmail.com> |
[clang.py] Add TranslationUnit.get_{file,source_location,source_range} git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
fbf620bc2b7812e826f04befa31d3a48a86210ba |
|
08-May-2012 |
Gregory Szorc <gregory.szorc@gmail.com> |
[clang.py] TranslationUnit API improvements * 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
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
8be80e1e6effd5a333bc70e7f030dc9397d0554e |
|
06-Jul-2011 |
Douglas Gregor <dgregor@apple.com> |
Improve the Python bindings for libclang in a few ways, from Eli 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
265e6b2d17ae348ce73961866979f574c65b56f4 |
|
05-Feb-2011 |
Tobias Grosser <grosser@fim.uni-passau.de> |
python bindings: Add support for translationUnit.reparse(). 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
88f9c6ca6eb0d4c48687dfed4d94292209c5a919 |
|
05-Feb-2011 |
Tobias Grosser <grosser@fim.uni-passau.de> |
python bindings: Include local headers the right way. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124955 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
ef7f798c0921cde7e665935a5630578cc1065e0f |
|
13-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
db59a7700e5e42e8b5f6f8e327067a969540ee14 |
|
25-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
cindex/Python: Support file objects as unsaved_files, albeit inefficiently. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
5b534f67946eeb2cb29076288bfee9707f055f82 |
|
25-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
cindex/Python: Implement support for unsaved/remapped files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94396 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
1f8d7f94c7c61c7bb45ebb07e6ce5461bf2a80d5 |
|
25-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
cindex/Python: Fix/simplify Index.parse() passing command line arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94394 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
a6a6499a904441fc9e82ba9dd4155b8bc33f38f9 |
|
24-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
cindex/Python: Move Cursor.is_ methods to CursorKind, and add test. Also, add CursorKind.get_all_kinds(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
a33dca490ad55c6f4bfc38a911f41a66f508a482 |
|
24-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
cindex/Python: Convert CXString objects to regular Python strings below API. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94384 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
1b945a7455e17fd792ef3bd3790dc88beea5faad |
|
24-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
cindex/Python: Add TranslationUnit.cursor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|
30c0f2637c4ba5d8764ff6e1ee6cbc89b89c63db |
|
24-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Initial checkin of CIndex Python bindings, by Andrew Sutton! - Some tweaks by me for API changes, Darwin, and x86_64 support. Still needs substantial updating to match recent CIndex API changes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/test_translation_unit.py
|