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/util.py
|
667fd80de4c3b7b143ba98a3b73e9b9b200f6af0 |
|
07-May-2012 |
Manuel Klimek <klimek@google.com> |
- Adding lexical_parent and semantic_parent properties to clang.cindex.Cursor - 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
/external/clang/bindings/python/tests/cindex/util.py
|
5b82b9606d9e36134724d5638efbc9d60fc8be90 |
|
02-May-2012 |
Anders Waldenborg <anders@0x63.nu> |
[python] Run tests for c++ with std=c++11 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156008 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/util.py
|
1f1988fe75f27548459cabee2ea6162cbfd9add2 |
|
10-Mar-2012 |
Gregory Szorc <gregory.szorc@gmail.com> |
[clang.py] Refactor get_tu and get_cursor test helper functions into util.py git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152510 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/tests/cindex/util.py
|