codegen: Ignore functions whose return type is ignored

This makes sure that if X is an ignored type, then functions that return
an object of type X (or a pointer type based on X) are also ignored.

Fixes #639293
This commit is contained in:
Arun Raghavan 2011-01-12 18:12:29 +05:30 committed by Edward Hervey
parent 778159a685
commit 59fc7cb120

View file

@ -724,7 +724,8 @@ class Wrapper:
# First, get methods from the defs files
for func in self.parser.find_functions():
funcname = func.c_name
if self.overrides.is_ignored(funcname):
if self.overrides.is_ignored(funcname) or \
self.overrides.is_type_ignored(func.ret):
continue
try:
if self.overrides.is_overriden(funcname):