mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22: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
|
@ -243,7 +243,8 @@ void ComponentManager<T, C>::RegisterComponent(C* component,
|
|||
// Install an identfier for enum value
|
||||
string id = fmt("%s%s", prefix.c_str(), cname.c_str());
|
||||
tag_enum_type->AddName(module, id.c_str(),
|
||||
component->Tag().AsEnumVal()->InternalInt(), true);
|
||||
component->Tag().AsEnumVal()->InternalInt(), true,
|
||||
false);
|
||||
}
|
||||
|
||||
} // namespace plugin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue