diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-09-19 14:57:31 -0400 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-09-19 15:00:32 -0400 |
commit | 21d6d4df0728a842c17dcbc00b18b647b817b670 (patch) | |
tree | 74e81c7fcca08bf9afbe037dc915d0ae86c98bef /tools/pm/Output.pm | |
parent | 89a68889a0b35f011083f5d6ca5176672b1a9172 (diff) | |
download | glibmm-21d6d4df0728a842c17dcbc00b18b647b817b670.tar.gz |
_WRAP_VFUNC: Prepend @throws clause to vfuncs that throw errors.
* tools/pm/Output.pm (output_wrap_vfunc_h): Prepend a Doxygen @throws
clause to the declaration of virtual functions that throw Glib::Error.
Diffstat (limited to 'tools/pm/Output.pm')
-rw-r--r-- | tools/pm/Output.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm index a820d240..916b18cb 100644 --- a/tools/pm/Output.pm +++ b/tools/pm/Output.pm @@ -118,6 +118,13 @@ sub output_wrap_vfunc_h($$$$$$) # ); # $self->append($str); + # Prepend a Doxygen @throws directive to the declaration if the virtual + # function throws an error. + if($$objCDefsFunc{throw_any_errors}) + { + $self->append('/// @throws Glib::Error.' . "\n"); + } + my $cppVfuncDecl = "virtual " . $$objCppfunc{rettype} . " " . $$objCppfunc{name} . "(" . $objCppfunc->args_types_and_names() . ")"; if($objCppfunc->get_is_const()) { |