mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
convert scopes to be managed using IntrusivePtr's
This commit is contained in:
parent
f2f041b63b
commit
efd03d41f8
16 changed files with 41 additions and 48 deletions
|
@ -20,6 +20,7 @@ class Expr;
|
|||
class Scope;
|
||||
class Stmt;
|
||||
using StmtPtr = IntrusivePtr<Stmt>;
|
||||
using ScopePtr = IntrusivePtr<Scope>;
|
||||
|
||||
enum DeclType { VAR_REGULAR, VAR_CONST, VAR_REDEF, VAR_OPTION, };
|
||||
|
||||
|
@ -41,7 +42,7 @@ extern void begin_func(IDPtr id, const char* module_name, FunctionFlavor flavor,
|
|||
extern void end_func(StmtPtr body);
|
||||
|
||||
// Gather all IDs referenced inside a body that aren't part of a given scope.
|
||||
extern IDPList gather_outer_ids(Scope* scope, Stmt* body);
|
||||
extern IDPList gather_outer_ids(ScopePtr scope, StmtPtr body);
|
||||
|
||||
} // namespace detail
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue