mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Fix generated script docs displaying functions twice.
A function prototype can be declared separately from where it's defined; the doc framework should now recognize them as the same and combine reST documentation associated with either case if both are present.
This commit is contained in:
parent
94ac3f3c23
commit
090ce2d03c
4 changed files with 104 additions and 19 deletions
|
@ -66,6 +66,18 @@ public:
|
|||
*/
|
||||
void SetRole(bool b) { use_role = b; }
|
||||
|
||||
/**
|
||||
* Append any reST documentation strings in a given BroDocObj to this
|
||||
* object's list and then delete the given BroDocObj
|
||||
* @param o a pointer to a BroDocObj to subsume
|
||||
*/
|
||||
void Combine(const BroDocObj* o);
|
||||
|
||||
/**
|
||||
* @return the name of the wrapped identifier
|
||||
*/
|
||||
const char* Name() const { return broID->Name(); }
|
||||
|
||||
protected:
|
||||
std::list<std::string>* reST_doc_strings;
|
||||
const ID* broID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue