PIPS
redeclaration_context Struct Reference

To generate the new variables, we need to know: More...

+ Collaboration diagram for redeclaration_context:

Data Fields

int cycle_depth
 
statement declaration_statement
 
const char * scope
 
const char * module_name
 
hash_table renamings
 

Detailed Description

To generate the new variables, we need to know:

  • if there is an enclosing control cycle
  • what is the (current) statement to be used for declaration
  • the current scope corresponding to that statement
  • the current module name (get_current_module_name() could be used instead)
  • and the renaming map

This data structure is private to flatten_code.c

Definition at line 263 of file flatten_code.c.

Field Documentation

◆ cycle_depth

int redeclaration_context::cycle_depth

Definition at line 264 of file flatten_code.c.

Referenced by redeclaration_enter_statement(), and redeclaration_exit_statement().

◆ declaration_statement

statement redeclaration_context::declaration_statement

Definition at line 265 of file flatten_code.c.

Referenced by redeclaration_enter_statement().

◆ module_name

const char* redeclaration_context::module_name

Definition at line 267 of file flatten_code.c.

Referenced by redeclaration_enter_statement().

◆ renamings

hash_table redeclaration_context::renamings

Definition at line 268 of file flatten_code.c.

Referenced by redeclaration_enter_statement().

◆ scope

const char* redeclaration_context::scope

Definition at line 266 of file flatten_code.c.

Referenced by redeclaration_enter_statement().


The documentation for this struct was generated from the following file: