Commit 6dc44705 authored by gsamain's avatar gsamain

Give c++ methods entry the cfunction flag

parent 904fc549
......@@ -2416,6 +2416,7 @@ class CppClassScope(Scope):
else:
entry = self.declare(name, cname, type, pos, visibility)
entry.is_variable = 1
entry.is_cfunction = type.is_cfunction
if type.is_cfunction and self.type:
if not self.type.get_fused_types():
entry.func_cname = "%s::%s" % (self.type.empty_declaration_code(), cname)
......@@ -2485,6 +2486,7 @@ class CppClassScope(Scope):
base_entry.type, None, 'extern')
entry.is_variable = 1
entry.is_inherited = 1
entry.is_cfunction = base_entry.is_cfunction
self.inherited_var_entries.append(entry)
for base_entry in base_scope.cfunc_entries:
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