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 | 8f8f35bd6ca7fa34b8030f3ed2f76f6e5e532595 (patch) | |
| tree | 957f232722373bbfd2562bb294184a8618134492 /clang/bindings/python | |
| parent | b34dde72e39905e528872596b5b23d21e209b78b (diff) | |
| download | bcm5719-llvm-8f8f35bd6ca7fa34b8030f3ed2f76f6e5e532595.tar.gz bcm5719-llvm-8f8f35bd6ca7fa34b8030f3ed2f76f6e5e532595.zip | |
cindex/Python: Eliminate Entity class, it has been removed from CIndex.
llvm-svn: 94357
Diffstat (limited to 'clang/bindings/python')
| -rw-r--r-- | clang/bindings/python/clang/cindex.py | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py index 9af4e4c64c8..2c7a04e3d94 100644 --- a/clang/bindings/python/clang/cindex.py +++ b/clang/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) |

