cindex.py: remove obsolete workaround and FIXME
authorAlp Toker <alp@nuanti.com>
Sun, 22 Jun 2014 23:28:54 +0000 (23:28 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 22 Jun 2014 23:28:54 +0000 (23:28 +0000)
clang_getCursorSpelling() doesn't assert on non-declarations any more and the
behaviour is covered by c-index tests.

Passes nosetests.

llvm-svn: 211482

clang/bindings/python/clang/cindex.py

index e03f7e6..517b3c1 100644 (file)
@@ -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)