mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
[clang.py] Return bool from Cursor.__eq__
llvm-svn: 152011
This commit is contained in:
@@ -893,7 +893,7 @@ class Cursor(Structure):
|
||||
return Cursor_eq(self, other)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not Cursor_eq(self, other)
|
||||
return not self.__eq__(other)
|
||||
|
||||
def is_definition(self):
|
||||
"""
|
||||
@@ -1876,7 +1876,7 @@ Cursor_def.errcheck = Cursor.from_result
|
||||
|
||||
Cursor_eq = lib.clang_equalCursors
|
||||
Cursor_eq.argtypes = [Cursor, Cursor]
|
||||
Cursor_eq.restype = c_uint
|
||||
Cursor_eq.restype = bool
|
||||
|
||||
Cursor_hash = lib.clang_hashCursor
|
||||
Cursor_hash.argtypes = [Cursor]
|
||||
|
||||
Reference in New Issue
Block a user