diff options
author | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2016-03-10 09:54:15 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2016-03-10 09:54:15 +0100 |
commit | 5e91bb406f5a50bfe14a92ccc2a1383d4039da76 (patch) | |
tree | 82c49b265b9b2fd3ffcd4a72449efb9bcd0a4651 /tools/pm/WrapParser.pm | |
parent | f9eaa8a9c0b8b65ad49be4e381474debceec5472 (diff) | |
download | glibmm-5e91bb406f5a50bfe14a92ccc2a1383d4039da76.tar.gz |
gmmproc: Check if signals and properties are deprecated appropriately
* tools/pm/GtkDefs.pm:
* tools/pm/Property.pm: Search for (deprecated #t) in the *_signals.defs file.
* tools/pm/Output.pm:
* tools/pm/WrapParser.pm: Warn if a signal, property or child property is
deprecated in the .defs file, but not in the _WRAP_* macro, and the whole
file is not deprecated (no _IS_DEPRECATED).
Diffstat (limited to 'tools/pm/WrapParser.pm')
-rw-r--r-- | tools/pm/WrapParser.pm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/pm/WrapParser.pm b/tools/pm/WrapParser.pm index b33ecb13..65fb9366 100644 --- a/tools/pm/WrapParser.pm +++ b/tools/pm/WrapParser.pm @@ -144,7 +144,8 @@ sub parse_and_build_output($) # _CLASS_OPAQUE_REFCOUNTED } - if ($token eq "namespace") { $self->on_namespace() }; + if ($token eq "namespace") { $self->on_namespace(); } + if ($token eq "_IS_DEPRECATED") { $$self{deprecated} = 1; } # After all token manipulations if($bAppend) @@ -1536,7 +1537,7 @@ sub on_wrap_property($) $deprecation_docs, $newin) = $self->on_wrap_any_property(); $objOutputter->output_wrap_property($filename, $line_num, $argPropertyName, - $argCppType, $$self{c_class}, $argDeprecated, $deprecation_docs, $newin); + $argCppType, $$self{c_class}, $$self{deprecated}, $argDeprecated, $deprecation_docs, $newin); } sub on_wrap_child_property($) @@ -1550,7 +1551,7 @@ sub on_wrap_child_property($) $deprecation_docs, $newin) = $self->on_wrap_any_property(); $objOutputter->output_wrap_child_property($filename, $line_num, $argPropertyName, - $argCppType, $$self{c_class}, $argDeprecated, $deprecation_docs, $newin); + $argCppType, $$self{c_class}, $$self{deprecated}, $argDeprecated, $deprecation_docs, $newin); } sub output_wrap_check($$$$$$) @@ -1613,6 +1614,9 @@ sub output_wrap_signal($$$$$$$$$$$$$$$$$) } } + Output::check_deprecation($$self{deprecated}, $objCSignal->get_deprecated(), + $deprecated, $signal_name, "signal", "SIGNAL"); + $objOutputter->output_wrap_sig_decl($filename, $line_num, $objCSignal, $objCppSignal, $signal_name, $bCustomCCallback, $ifdef, $commentblock, $deprecated, $deprecation_docs, $newin, $exceptionHandler, |