mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
broader tracking of aggregate modifications
This commit is contained in:
parent
f0eccda180
commit
8a18d5f8a2
3 changed files with 66 additions and 45 deletions
|
@ -1008,10 +1008,12 @@ bool CSE_ValidityChecker::CheckID(const ID* id, bool ignore_orig) const {
|
|||
return true; // reassignment
|
||||
|
||||
if ( id_t && same_type(id_t, i->GetType()) ) {
|
||||
// printf("identifier %s (%d), start %s, end %s\n", id->Name(), ignore_orig, obj_desc(start_e).c_str(),
|
||||
// obj_desc(end_e).c_str()); Same-type aggregate.
|
||||
// if ( ignore_orig )
|
||||
return true;
|
||||
// Same-type aggregate.
|
||||
if ( ! ignore_orig )
|
||||
printf("identifier %s (%d), start %s, end %s\n", id->Name(), ignore_orig, obj_desc(start_e).c_str(),
|
||||
obj_desc(end_e).c_str());
|
||||
if ( ignore_orig )
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue