mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Remove empty private interface sections from generated script docs.
This commit is contained in:
parent
7d261dcb55
commit
3ad5f0559d
1 changed files with 13 additions and 2 deletions
|
@ -127,7 +127,18 @@ void BroDoc::WriteDocFile() const
|
||||||
WriteBroDocObjList(notices, "Notices", '~');
|
WriteBroDocObjList(notices, "Notices", '~');
|
||||||
|
|
||||||
WriteInterface("Public Interface", '-', '~', true, false);
|
WriteInterface("Public Interface", '-', '~', true, false);
|
||||||
WriteInterface("Private Interface", '-', '~', false, false);
|
|
||||||
|
BroDocObjList::const_iterator it;
|
||||||
|
bool hasPrivateIdentifiers = false;
|
||||||
|
for ( it = all.begin(); it != all.end(); ++it )
|
||||||
|
if ( ! IsPublicAPI(*it) )
|
||||||
|
{
|
||||||
|
hasPrivateIdentifiers = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( hasPrivateIdentifiers )
|
||||||
|
WriteInterface("Private Interface", '-', '~', false, false);
|
||||||
|
|
||||||
if ( ! port_analysis.empty() )
|
if ( ! port_analysis.empty() )
|
||||||
{
|
{
|
||||||
|
@ -220,7 +231,7 @@ void BroDoc::WriteBroDocObjList(const BroDocObjList& l,
|
||||||
{
|
{
|
||||||
if ( l.empty() ) return;
|
if ( l.empty() ) return;
|
||||||
|
|
||||||
std::list<const BroDocObj*>::const_iterator it;
|
BroDocObjList::const_iterator it;
|
||||||
bool (*f_ptr)(const BroDocObj* o) = 0;
|
bool (*f_ptr)(const BroDocObj* o) = 0;
|
||||||
|
|
||||||
if ( wantPublic )
|
if ( wantPublic )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue