Skip to content
Snippets Groups Projects
  1. Feb 20, 2014
  2. Mar 19, 2013
  3. Jul 12, 2012
  4. May 08, 2012
    • Gregory Szorc's avatar
      [clang.py] TranslationUnit API improvements · fbf620bc
      Gregory Szorc authored
      * 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
      fbf620bc
  5. Jul 06, 2011
    • Douglas Gregor's avatar
      Improve the Python bindings for libclang in a few ways, from Eli · 8be80e1e
      Douglas Gregor authored
      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
      8be80e1e
  6. Feb 05, 2011
  7. Feb 13, 2010
  8. Jan 25, 2010
  9. Jan 24, 2010
Loading