* giscanner/transformer.py (_create_parameters): Warn if we see
annotations for unknown parameters. If .h and .c files name
parameters differently, the annotations may be lost.
svn path=/trunk/; revision=771
dirs = {}
else:
dirs = directives
+
+ # warn if we see annotations for unknown parameters
+ param_names = set(child.ident for child in base_type.child_list)
+ dirs_for = set(dirs)
+ dirs_for = dirs_for.difference(param_names)
+ dirs_for.discard('return')
+ if dirs_for:
+ print 'Unexpected annotations for %s, parameters are %s' % (
+ list(dirs_for), list(param_names), )
+
for child in base_type.child_list:
yield self._create_parameter(
child, dirs.get(child.ident, {}))