r263170 - libclang python bindings: Fix for bug 26394

Jonathan Coe via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 10 15:29:46 PST 2016


Author: jbcoe
Date: Thu Mar 10 17:29:45 2016
New Revision: 263170

URL: http://llvm.org/viewvc/llvm-project?rev=263170&view=rev
Log:
libclang python bindings: Fix for bug 26394

Summary:
https://llvm.org/bugs/show_bug.cgi?id=26394 reports that clang's python bindings tests are failing.

I can confirm that the bug exists and that the proposed fix is good.

Differential Revision: http://reviews.llvm.org/D17226

Modified:
    cfe/trunk/bindings/python/clang/cindex.py

Modified: cfe/trunk/bindings/python/clang/cindex.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=263170&r1=263169&r2=263170&view=diff
==============================================================================
--- cfe/trunk/bindings/python/clang/cindex.py (original)
+++ cfe/trunk/bindings/python/clang/cindex.py Thu Mar 10 17:29:45 2016
@@ -2383,7 +2383,7 @@ class TranslationUnit(ClangObject):
         functions above. __init__ is only called internally.
         """
         assert isinstance(index, Index)
-
+        self.index = index
         ClangObject.__init__(self, ptr)
 
     def __del__(self):




More information about the cfe-commits mailing list