Skip to content

Commit c677ae1

Browse files
committed
[clang_utils.py] minor refactor
1 parent f89fa5f commit c677ae1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bindings/python/scripts/clang_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def getmembers_static(object, predicate=None):
5858
ignore_list = ["mangled_name", "get_address_space", "get_typedef_name", "tls_kind"]
5959

6060

61-
def macro(instance, object):
61+
def define_class_using_macro(instance, object):
6262
instance.check_functions_dict = {}
6363
instance.get_functions_dict = {}
6464
instance.properties_dict = {}
@@ -87,17 +87,17 @@ def macro(instance, object):
8787

8888
class CursorKindUtils:
8989
def __init__(self, cursor_kind: clang.CursorKind):
90-
macro(instance=self, object=cursor_kind)
90+
define_class_using_macro(instance=self, object=cursor_kind)
9191

9292

9393
class CursorUtils:
9494
def __init__(self, cursor: clang.Cursor):
95-
macro(instance=self, object=cursor)
95+
define_class_using_macro(instance=self, object=cursor)
9696

9797

9898
class TypeUtils:
9999
def __init__(self, cursor_type: clang.Type):
100-
macro(instance=self, object=cursor_type)
100+
define_class_using_macro(instance=self, object=cursor_type)
101101

102102

103103
# Docstring template for the classes

0 commit comments

Comments
 (0)