diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-07-12 11:34:14 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-07-12 11:34:14 +0000 |
commit | 4fabc97c432a43f0c8efc0b307ca9741b016a66c (patch) | |
tree | e7a430483d8f998b172f64e21cdbea56b1512364 /clang/bindings | |
parent | 571b8cfac94bf030c8db74dc24e28301480ecb96 (diff) |
Revert r307769 (Forgot to mention the name of the contributor).
llvm-svn: 307770
Diffstat (limited to 'clang/bindings')
-rw-r--r-- | clang/bindings/python/clang/cindex.py | 9 | ||||
-rw-r--r-- | clang/bindings/python/tests/cindex/test_cursor.py | 16 |
2 files changed, 0 insertions, 25 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py index 236803a9ab9b..1ca580491906 100644 --- a/clang/bindings/python/clang/cindex.py +++ b/clang/bindings/python/clang/cindex.py @@ -1478,11 +1478,6 @@ class Cursor(Structure): """ return conf.lib.clang_CXXMethod_isVirtual(self) - def is_scoped_enum(self): - """Returns True if the cursor refers to a scoped enum declaration. - """ - return conf.lib.clang_EnumDecl_isScoped(self) - def get_definition(self): """ If the cursor is a reference to a declaration or a declaration of @@ -3319,10 +3314,6 @@ functionList = [ [Cursor], bool), - ("clang_EnumDecl_isScoped", - [Cursor], - bool), - ("clang_defaultDiagnosticDisplayOptions", [], c_uint), diff --git a/clang/bindings/python/tests/cindex/test_cursor.py b/clang/bindings/python/tests/cindex/test_cursor.py index 4787ea931e13..8103e96df4f9 100644 --- a/clang/bindings/python/tests/cindex/test_cursor.py +++ b/clang/bindings/python/tests/cindex/test_cursor.py @@ -255,22 +255,6 @@ def test_is_virtual_method(): assert foo.is_virtual_method() assert not bar.is_virtual_method() -def test_is_scoped_enum(): - """Ensure Cursor.is_scoped_enum works.""" - source = 'class X {}; enum RegularEnum {}; enum class ScopedEnum {};' - tu = get_tu(source, lang='cpp') - - cls = get_cursor(tu, 'X') - regular_enum = get_cursor(tu, 'RegularEnum') - scoped_enum = get_cursor(tu, 'ScopedEnum') - assert cls is not None - assert regular_enum is not None - assert scoped_enum is not None - - assert not cls.is_scoped_enum() - assert not regular_enum.is_scoped_enum() - assert scoped_enum.is_scoped_enum() - def test_underlying_type(): tu = get_tu('typedef int foo;') typedef = get_cursor(tu, 'foo') |