mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18: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
|
@ -2,6 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/TraverseTypes.h"
|
||||
|
||||
namespace zeek {
|
||||
|
@ -10,7 +11,6 @@ class Func;
|
|||
|
||||
namespace detail {
|
||||
|
||||
class Scope;
|
||||
class Stmt;
|
||||
class Expr;
|
||||
class ID;
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
virtual TraversalCode PreDecl(const ID*) { return TC_CONTINUE; }
|
||||
virtual TraversalCode PostDecl(const ID*) { return TC_CONTINUE; }
|
||||
|
||||
Scope* current_scope;
|
||||
ScopePtr current_scope;
|
||||
};
|
||||
|
||||
TraversalCode traverse_all(TraversalCallback* cb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue