Merge remote-tracking branch 'origin/topic/vern/emphasize-IDPtrs'

* origin/topic/vern/emphasize-IDPtrs:
  fixup! fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
  fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
  fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
  fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
  annotate a number of BTests as unsuited for -O gen-C++ testing due to multiple Zeek runs
  BTest baseline updates for -O gen-C++ - all minor tweaks
  BTest updates for script optimization tracking of BiFs
  regression test for former ASAN issue with script optimization of lambdas
  shift much of the internal use of ID* identifier pointers over to IDPtr objects
  maintenance update for script optimization's knowledge of BiFs
  logger fix for interoperability with -O gen-C++ code
This commit is contained in:
Tim Wojtulewicz 2025-09-03 15:02:41 -07:00
commit e3b22cd21f
85 changed files with 488 additions and 417 deletions

View file

@ -331,7 +331,7 @@ static void refine_location(zeek::detail::ID* id) {
bool b;
char* str;
zeek::detail::ID* id;
zeek::IDPList* id_l;
zeek::detail::IDPList* id_l;
zeek::detail::InitClass ic;
zeek::Val* val;
zeek::RE_Matcher* re;
@ -2017,12 +2017,12 @@ case:
case_type_list:
case_type_list ',' case_type
{ $1->push_back($3); }
{ $1->push_back({AdoptRef{}, $3}); }
|
case_type
{
$$ = new IDPList;
$$->push_back($1);
$$->push_back({AdoptRef{}, $1});
}
;
@ -2066,7 +2066,7 @@ for_head:
}
auto* loop_vars = new IDPList;
loop_vars->push_back(loop_var.release());
loop_vars->push_back(loop_var);
$$ = new ForStmt(loop_vars, {AdoptRef{}, $5});
}
@ -2098,7 +2098,7 @@ for_head:
val_var = install_ID($5, module, false, false);
auto* loop_vars = new IDPList;
loop_vars->push_back(key_var.release());
loop_vars->push_back(key_var);
$$ = new ForStmt(loop_vars, {AdoptRef{}, $7}, std::move(val_var));
}
@ -2122,11 +2122,11 @@ for_head:
local_id_list:
local_id_list ',' local_id
{ $1->push_back($3); }
{ $1->push_back({AdoptRef{}, $3}); }
| local_id
{
$$ = new IDPList;
$$->push_back($1);
$$->push_back({AdoptRef{}, $1});
}
;