Commit fa5a6a54 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Cpp: Give c++ methods entry the cfunction flag

parent 53d7b8f4
......@@ -2517,6 +2517,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)
......@@ -2586,6 +2587,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