Author: arphaman Date: Thu Dec 14 15:40:42 2017 New Revision: 320766 URL: http://llvm.org/viewvc/llvm-project?rev=320766&view=rev Log: Remove duplicate python libclang changes from r320748
Modified: cfe/trunk/bindings/python/clang/cindex.py cfe/trunk/bindings/python/tests/cindex/test_cursor.py Modified: cfe/trunk/bindings/python/clang/cindex.py URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=320766&r1=320765&r2=320766&view=diff ============================================================================== --- cfe/trunk/bindings/python/clang/cindex.py (original) +++ cfe/trunk/bindings/python/clang/cindex.py Thu Dec 14 15:40:42 2017 @@ -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. """ @@ -3413,10 +3407,6 @@ functionList = [ [Cursor], bool), - ("clang_CXXRecord_isAbstract", - [Cursor], - bool), - ("clang_CXXRecord_isAbstract", [Cursor], bool), Modified: cfe/trunk/bindings/python/tests/cindex/test_cursor.py URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/tests/cindex/test_cursor.py?rev=320766&r1=320765&r2=320766&view=diff ============================================================================== --- cfe/trunk/bindings/python/tests/cindex/test_cursor.py (original) +++ cfe/trunk/bindings/python/tests/cindex/test_cursor.py Thu Dec 14 15:40:42 2017 @@ -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 {};' _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits