summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-12-14 23:40:42 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-12-14 23:40:42 +0000
commit61ab19ddad0e160d00225b4fda352d240bd813af (patch)
treea4493eef4a08d81c5d07b08072739eeac285676e /bindings
parent2d8dad1d7c666548d7c63a3d4baeecd2ad5805d3 (diff)
downloadclang-61ab19ddad0e160d00225b4fda352d240bd813af.tar.gz
Remove duplicate python libclang changes from r320748
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/clang/cindex.py10
-rw-r--r--bindings/python/tests/cindex/test_cursor.py11
2 files changed, 0 insertions, 21 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
index 6cdb10ef08..b53661a4d0 100644
--- a/bindings/python/clang/cindex.py
+++ b/bindings/python/clang/cindex.py
@@ -1485,12 +1485,6 @@ class Cursor(Structure):
"""
return conf.lib.clang_CXXRecord_isAbstract(self)
- def is_abstract_record(self):
- """Returns True if the cursor refers to a C++ record declaration
- that has pure virtual member functions.
- """
- return conf.lib.clang_CXXRecord_isAbstract(self)
-
def is_scoped_enum(self):
"""Returns True if the cursor refers to a scoped enum declaration.
"""
@@ -3417,10 +3411,6 @@ functionList = [
[Cursor],
bool),
- ("clang_CXXRecord_isAbstract",
- [Cursor],
- bool),
-
("clang_EnumDecl_isScoped",
[Cursor],
bool),
diff --git a/bindings/python/tests/cindex/test_cursor.py b/bindings/python/tests/cindex/test_cursor.py
index 80f023912a..c2a4eb57d0 100644
--- a/bindings/python/tests/cindex/test_cursor.py
+++ b/bindings/python/tests/cindex/test_cursor.py
@@ -286,17 +286,6 @@ class TestCursor(unittest.TestCase):
cls = get_cursor(tu, 'Y')
self.assertFalse(cls.is_abstract_record())
- def test_is_abstract_record(self):
- """Ensure Cursor.is_abstract_record works."""
- source = 'struct X { virtual void x() = 0; }; struct Y : X { void x(); };'
- tu = get_tu(source, lang='cpp')
-
- cls = get_cursor(tu, 'X')
- self.assertTrue(cls.is_abstract_record())
-
- cls = get_cursor(tu, 'Y')
- self.assertFalse(cls.is_abstract_record())
-
def test_is_scoped_enum(self):
"""Ensure Cursor.is_scoped_enum works."""
source = 'class X {}; enum RegularEnum {}; enum class ScopedEnum {};'