Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generator.py #230

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ def methods_clean(self):
if self.generator.should_skip(self.class_name, name):
should_skip = True
if not should_skip:
name = self.generator.should_rename_function(self.class_name, name) or name
ret.append({"name": name, "impl": impl})
return ret

Expand All @@ -774,6 +775,7 @@ def static_methods_clean(self):
for name, impl in self.static_methods.iteritems():
should_skip = self.generator.should_skip(self.class_name, name)
if not should_skip:
name = self.generator.should_rename_function(self.class_name, name) or name
ret.append({"name": name, "impl": impl})
return ret

Expand All @@ -785,6 +787,7 @@ def override_methods_clean(self):
for name, impl in self.override_methods.iteritems():
should_skip = self.generator.should_skip(self.class_name, name)
if not should_skip:
name = self.generator.should_rename_function(self.class_name, name) or name
ret.append({"name": name, "impl": impl})
return ret

Expand Down Expand Up @@ -908,7 +911,7 @@ def _process_node(self, cursor):
# skip if variadic
if self._current_visibility == cindex.AccessSpecifierKind.PUBLIC and not cursor.type.is_function_variadic():
m = NativeFunction(cursor)
registration_name = self.generator.should_rename_function(self.class_name, m.func_name) or m.func_name
registration_name = m.func_name
# bail if the function is not supported (at least one arg not supported)
if m.not_supported:
return False
Expand Down