diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-22 23:28:54 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-22 23:28:54 +0000 |
commit | 6ca5d0388481b012c367989f79aed2638b74cf3d (patch) | |
tree | 9a3ec8773724c755c16bd071f1572ae5d5bd4fc1 /bindings | |
parent | ad7245b90fe9edd01b663f0e17521c9ae42d619e (diff) |
cindex.py: remove obsolete workaround and FIXME
clang_getCursorSpelling() doesn't assert on non-declarations any more and the
behaviour is covered by c-index tests.
Passes nosetests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/clang/cindex.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index e03f7e6c4e..517b3c1bac 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) |