diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index e03f7e6c4e345898621f96b1e4182b0b3dcb6e95..517b3c1bac6ed1bda14634da28029d3da1b2dacc 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -1166,10 +1166,6 @@ class Cursor(Structure): @property def spelling(self): """Return the spelling of the entity pointed at by the cursor.""" - if not self.kind.is_declaration(): - # FIXME: clang_getCursorSpelling should be fixed to not assert on - # this, for consistency with clang_getCursorUSR. - return None if not hasattr(self, '_spelling'): self._spelling = conf.lib.clang_getCursorSpelling(self)