mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Broxygen doc-related test updates. Fix two regressions.
- Fix automatic function parameter documentation formatting for record fields that are functions. - Document redefs in a fixed order.
This commit is contained in:
parent
7e0864468c
commit
98dcfc64a8
30 changed files with 714 additions and 846 deletions
13
src/Type.cc
13
src/Type.cc
|
@ -9,6 +9,7 @@
|
|||
#include "Serializer.h"
|
||||
#include "Reporter.h"
|
||||
#include "broxygen/Manager.h"
|
||||
#include "broxygen/utils.h"
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
@ -1182,7 +1183,17 @@ void RecordType::DescribeFieldsReST(ODesc* d, bool func_args) const
|
|||
if ( i > 0 )
|
||||
d->NL();
|
||||
|
||||
d->Add(cmnts[i].c_str());
|
||||
if ( IsFunc(td->type->Tag()) )
|
||||
{
|
||||
string s = cmnts[i];
|
||||
|
||||
if ( broxygen::prettify_params(s) )
|
||||
d->NL();
|
||||
|
||||
d->Add(s.c_str());
|
||||
}
|
||||
else
|
||||
d->Add(cmnts[i].c_str());
|
||||
}
|
||||
|
||||
d->PopIndentNoNL();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue