mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Address PR review feedback on zam-feature-complete
* insert_or_assign usage * master -> primary * FunctionIngredientsPtr * FuncType::Capture deprecations * no new ScriptFunc constructor
This commit is contained in:
parent
46d3526b40
commit
cb15e0d4f1
11 changed files with 71 additions and 53 deletions
|
@ -699,11 +699,14 @@ TypePtr SetType::ShallowClone()
|
|||
|
||||
SetType::~SetType() = default;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
FuncType::Capture::Capture(detail::IDPtr _id, bool _deep_copy)
|
||||
: id(std::move(_id)), deep_copy(_deep_copy)
|
||||
{
|
||||
is_managed = id ? ZVal::IsManagedType(id->GetType()) : false;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
FuncType::FuncType(RecordTypePtr arg_args, TypePtr arg_yield, FunctionFlavor arg_flavor)
|
||||
: Type(TYPE_FUNC), args(std::move(arg_args)), arg_types(make_intrusive<TypeList>()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue