mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Add a new attribute: &deprecated.
While scripts are parsed, a warning is raised for each usage of an identifier marked as &deprecated. This also works for BIFs. Addresses BIT-924, BIT-757.
This commit is contained in:
parent
f51dc5cbb8
commit
87962a48dd
12 changed files with 192 additions and 31 deletions
3
src/ID.h
3
src/ID.h
|
@ -80,6 +80,9 @@ public:
|
|||
Attr* FindAttr(attr_tag t) const
|
||||
{ return attrs ? attrs->FindAttr(t) : 0; }
|
||||
|
||||
bool IsDeprecated() const
|
||||
{ return FindAttr(ATTR_DEPRECATED) != 0; }
|
||||
|
||||
void Error(const char* msg, const BroObj* o2 = 0);
|
||||
|
||||
void Describe(ODesc* d) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue