mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Allow duplicate attributes in full redefs
This commit is contained in:
parent
9b2f26c0aa
commit
9106f3f722
5 changed files with 18 additions and 15 deletions
|
@ -314,10 +314,10 @@ std::string ID::GetDeprecationWarning() const
|
|||
return zeek::util::fmt("deprecated (%s): %s", Name(), result.c_str());
|
||||
}
|
||||
|
||||
void ID::AddAttrs(AttributesPtr a)
|
||||
void ID::AddAttrs(AttributesPtr a, bool is_redef)
|
||||
{
|
||||
if ( attrs )
|
||||
attrs->AddAttrs(a);
|
||||
attrs->AddAttrs(a, is_redef);
|
||||
else
|
||||
attrs = std::move(a);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue