diff options
author | Alan Conway <aconway@apache.org> | 2013-05-02 21:47:13 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2013-05-02 21:47:13 +0000 |
commit | ba9f80714ae4870c01b450b4f89cfa87d51a6827 (patch) | |
tree | f66a443236e4a7886f7e8ca2e449d52c7d1766ec /qpid/cpp/rubygen/framing.0-10/Session.rb | |
parent | 276e15f7b9baa99372f290f52f40bda2b9c5e5b7 (diff) | |
download | qpid-python-ba9f80714ae4870c01b450b4f89cfa87d51a6827.tar.gz |
QPID-4798: Fix up c++ code generation to use stripped spec files.
The stripped specs have no <doc> elements, this was tripping up the code
generator. Fixed the generator to process <doc> elements if they are present but
to carry on without them if they are not.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1478582 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/framing.0-10/Session.rb')
-rwxr-xr-x | qpid/cpp/rubygen/framing.0-10/Session.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/rubygen/framing.0-10/Session.rb b/qpid/cpp/rubygen/framing.0-10/Session.rb index e800df9b2e..28165448ed 100755 --- a/qpid/cpp/rubygen/framing.0-10/Session.rb +++ b/qpid/cpp/rubygen/framing.0-10/Session.rb @@ -34,6 +34,7 @@ class CppGen # Generates a doxygen comment for AmqpMethod m. def doxygen(m) + return unless m.doc doxygen_comment { genl m.doc genl @@ -143,7 +144,8 @@ class SessionNoKeywordGen < CppGen namespace(@namespace) { doxygen_comment { genl "AMQP #{@amqp.version} #{sync_adjective} session API." - genl @amqp.class_("session").doc + d = @amqp.class_("session").doc + genl d if d # FIXME aconway 2008-05-23: additional doc on sync/async use. } cpp_class(@classname, "public #{@version_base}") { |