Fix Broxygen's rendering of opaque types.

BIT-1245 #close
This commit is contained in:
Jon Siwek 2014-09-08 19:01:13 -05:00
parent ff33789f6a
commit 3caecadf0a
4 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,8 @@
2.3-137 | 2014-09-08 19:01:13 -0500
* Fix Broxygen's rendering of opaque types. (Jon Siwek)
2.3-136 | 2014-09-07 20:50:46 -0700 2.3-136 | 2014-09-07 20:50:46 -0700
* Change more http links to https. (Johanna Amann) * Change more http links to https. (Johanna Amann)

View file

@ -1 +1 @@
2.3-136 2.3-137

View file

@ -1381,6 +1381,11 @@ void OpaqueType::Describe(ODesc* d) const
d->Add(name.c_str()); d->Add(name.c_str());
} }
void OpaqueType::DescribeReST(ODesc* d, bool roles_only) const
{
d->Add(fmt(":bro:type:`%s` of %s", type_name(Tag()), name.c_str()));
}
IMPLEMENT_SERIAL(OpaqueType, SER_OPAQUE_TYPE); IMPLEMENT_SERIAL(OpaqueType, SER_OPAQUE_TYPE);
bool OpaqueType::DoSerialize(SerialInfo* info) const bool OpaqueType::DoSerialize(SerialInfo* info) const

View file

@ -534,6 +534,7 @@ public:
const string& Name() const { return name; } const string& Name() const { return name; }
void Describe(ODesc* d) const; void Describe(ODesc* d) const;
void DescribeReST(ODesc* d, bool roles_only = false) const;
protected: protected:
OpaqueType() { } OpaqueType() { }