summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2012-09-19 14:57:31 -0400
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2012-09-19 15:00:32 -0400
commit21d6d4df0728a842c17dcbc00b18b647b817b670 (patch)
tree74e81c7fcca08bf9afbe037dc915d0ae86c98bef
parent89a68889a0b35f011083f5d6ca5176672b1a9172 (diff)
downloadglibmm-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.
-rw-r--r--ChangeLog7
-rw-r--r--tools/pm/Output.pm7
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b7ba3fe8..712fb611 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-09-19 José Alburquerque <jaalburquerque@gmail.com>
+
+ _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.
+
2012-09-18 José Alburquerque <jaalburqu@svn.gnome.org>
Gio::DBus::Connection: Add the call_[finish|sync]() with UnixFDLists.
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())
{