summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-22 23:28:54 +0000
committerAlp Toker <alp@nuanti.com>2014-06-22 23:28:54 +0000
commit1a923b42cb6952a975d1cda704add6e78e82e3e0 (patch)
treebd1b75e088b32e4203a7a8c09a656ef623bd0430 /clang/bindings/python
parentbdbc0088da6413a2f970cc0d49a723aedd3f35c6 (diff)
downloadbcm5719-llvm-1a923b42cb6952a975d1cda704add6e78e82e3e0.tar.gz
bcm5719-llvm-1a923b42cb6952a975d1cda704add6e78e82e3e0.zip
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. llvm-svn: 211482
Diffstat (limited to 'clang/bindings/python')
-rw-r--r--clang/bindings/python/clang/cindex.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index e03f7e6c4e3..517b3c1bac6 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/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)
OpenPOWER on IntegriCloud