diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-24 04:09:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-24 04:09:58 +0000 |
commit | 149f38abf5e122941090bfb9d1d78dde0859024a (patch) | |
tree | 61b931a1cdef11e8bc753b64471f82f37a105522 /bindings | |
parent | 99d593ed41216ffc8e6ebb25fdcb5102c3866b99 (diff) | |
download | clang-149f38abf5e122941090bfb9d1d78dde0859024a.tar.gz |
cindex/Python: Eliminate Entity class, it has been removed from CIndex.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/clang/cindex.py | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index 9af4e4c64c..2c7a04e3d9 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -86,7 +86,7 @@ class String(Structure): 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 @@ class Cursor(Structure): 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 @@ class Cursor(Structure): """ 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 @@ class Declaration(ClangObject): 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) |