mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
track the use of conditionals in functions and files
This commit is contained in:
parent
f865897cac
commit
e73351a6e1
5 changed files with 103 additions and 48 deletions
|
@ -45,7 +45,7 @@ extern void add_type(ID* id, TypePtr t, std::unique_ptr<std::vector<AttrPtr>> at
|
|||
extern void begin_func(IDPtr id, const char* module_name, FunctionFlavor flavor, bool is_redef,
|
||||
FuncTypePtr t, std::unique_ptr<std::vector<AttrPtr>> attrs = nullptr);
|
||||
|
||||
extern void end_func(StmtPtr body);
|
||||
extern void end_func(StmtPtr body, bool free_of_conditionals);
|
||||
|
||||
// Gather all IDs referenced inside a body that aren't part of a given scope.
|
||||
extern IDPList gather_outer_ids(ScopePtr scope, StmtPtr body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue