diff options
author | Gregory Szorc <gregory.szorc@gmail.com> | 2012-05-08 05:56:38 +0000 |
---|---|---|
committer | Gregory Szorc <gregory.szorc@gmail.com> | 2012-05-08 05:56:38 +0000 |
commit | fbf620bc2b7812e826f04befa31d3a48a86210ba (patch) | |
tree | 7057cf6e5594146b569f051efa5665657b32ac6f /test/Sema/format-strings.c | |
parent | c319c585c0d5899cba0dca2272e6e4909c8b9f16 (diff) |
[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
Diffstat (limited to 'test/Sema/format-strings.c')
0 files changed, 0 insertions, 0 deletions