[cfe-commits] r94357 - /cfe/trunk/bindings/python/clang/cindex.py

Daniel Dunbar daniel at zuster.org
Sat Jan 23 20:09:59 PST 2010


Author: ddunbar
Date: Sat Jan 23 22:09:58 2010
New Revision: 94357

URL: http://llvm.org/viewvc/llvm-project?rev=94357&view=rev
Log:
cindex/Python: Eliminate Entity class, it has been removed from CIndex.

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=94357&r1=94356&r2=94357&view=diff

==============================================================================
--- cfe/trunk/bindings/python/clang/cindex.py (original)
+++ cfe/trunk/bindings/python/clang/cindex.py Sat Jan 23 22:09:58 2010
@@ -86,7 +86,7 @@
 
 class SourceLocation(Structure):
     """
-    A SourceLocation Represents a particular location within a source file.
+    A SourceLocation represents a particular location within a source file.
     """
     _fields_ = [("ptr_data", c_void_p), ("int_data", c_uint)]
 
@@ -153,7 +153,7 @@
         return Cursor_is_decl(self.kind)
 
     def is_reference(self):
-        """Return True if the cursor points to a refernce."""
+        """Return True if the cursor points to a reference."""
         return Cursor_is_ref(self.kind)
 
     def is_expression(self):
@@ -231,17 +231,6 @@
         """
         return self.location.file
 
-# FIXME: Implement this class.
-class Entity(Structure):
-    """
-    An Entity is a uniqe token for accessing "visible" declarations within
-    a translation unit.
-    """
-    # NOTE: Index is written here as a void*, but given in the API as CXIndex.
-    # Be careful to translate back to Index when returning this member.
-    # TODO: Rename as _index and write a property?
-    _fields_ = [("index", c_void_p), ("data", c_void_p)]
-
 ## CIndex Objects ##
 
 # CIndex objects (derived from ClangObject) are essentially lightweight
@@ -362,11 +351,6 @@
         return self.cursor.kind
 
     @property
-    def entity(self):
-        """Return an entity that represents this declaration."""
-        return Entity(Declaration_entity(self))
-
-    @property
     def spelling(self):
         """Return the spelling (name) of the declaration."""
         return Declaration_spelling(self)





More information about the cfe-commits mailing list