(c/cpp) do not show void return type

This commit is contained in:
danymat
2021-11-11 10:34:40 +01:00
parent 35d36abb8c
commit c75b9bad1e

View File

@@ -73,7 +73,7 @@ local c_function_extractor = function(node)
-- function implementation
return res.return_statement
elseif res.function_declarator and res.primitive_type then
if res.primitive_type or res.pointer_declarator then
if res.primitive_type[1] ~= "void" or res.pointer_declarator then
-- function prototype
return res.primitive_type
end