Commit 93ebe53a authored by gsamain's avatar gsamain

Give c++ methods entry the cfunction flag

parent 10b1803e
...@@ -2419,6 +2419,7 @@ class CppClassScope(Scope): ...@@ -2419,6 +2419,7 @@ class CppClassScope(Scope):
else: else:
entry = self.declare(name, cname, type, pos, visibility) entry = self.declare(name, cname, type, pos, visibility)
entry.is_variable = 1 entry.is_variable = 1
entry.is_cfunction = type.is_cfunction
if type.is_cfunction and self.type: if type.is_cfunction and self.type:
if not self.type.get_fused_types(): if not self.type.get_fused_types():
entry.func_cname = "%s::%s" % (self.type.empty_declaration_code(), cname) entry.func_cname = "%s::%s" % (self.type.empty_declaration_code(), cname)
...@@ -2488,6 +2489,7 @@ class CppClassScope(Scope): ...@@ -2488,6 +2489,7 @@ class CppClassScope(Scope):
base_entry.type, None, 'extern') base_entry.type, None, 'extern')
entry.is_variable = 1 entry.is_variable = 1
entry.is_inherited = 1 entry.is_inherited = 1
entry.is_cfunction = base_entry.is_cfunction
self.inherited_var_entries.append(entry) self.inherited_var_entries.append(entry)
for base_entry in base_scope.cfunc_entries: for base_entry in base_scope.cfunc_entries:
entry = self.declare_cfunction(base_entry.name, base_entry.type, entry = self.declare_cfunction(base_entry.name, base_entry.type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment