mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Update to auto-generated documentation format.
Comments are now clearly marked. Enums are now documented in order of their integral value, not their identifier string.
This commit is contained in:
parent
f47c8e4d93
commit
b1dc5d3a1c
2 changed files with 27 additions and 14 deletions
|
@ -18,16 +18,19 @@ BroDocObj::~BroDocObj()
|
|||
|
||||
void BroDocObj::WriteReST(FILE* file) const
|
||||
{
|
||||
if ( reST_doc_strings )
|
||||
{
|
||||
std::list<std::string>::const_iterator it;
|
||||
for ( it = reST_doc_strings->begin();
|
||||
it != reST_doc_strings->end(); ++it)
|
||||
fprintf(file, "%s\n", it->c_str());
|
||||
}
|
||||
|
||||
ODesc desc;
|
||||
desc.SetQuotes(1);
|
||||
broID->DescribeReST(&desc);
|
||||
fprintf(file, "%s\n\n", desc.Description());
|
||||
}
|
||||
fprintf(file, "%s\n", desc.Description());
|
||||
|
||||
if ( HasDocumentation() )
|
||||
{
|
||||
fprintf(file, "\t.. bro:comment::\n");
|
||||
std::list<std::string>::const_iterator it;
|
||||
for ( it = reST_doc_strings->begin();
|
||||
it != reST_doc_strings->end(); ++it)
|
||||
fprintf(file, "\t\t%s\n", it->c_str());
|
||||
}
|
||||
|
||||
fprintf(file, "\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue