#include "segment.h"
#include "cached_function_ast_attributes.h"
#include "../internal_representation/design.h"
#include "../tools/function_helper.h"
#include "../tools/misc.h"
Defines | |
#define | ANALYZE_VARS_IN_COMPOUND_ASSIGN_OP(Operator) |
#define | ANALYZE_VARS_IN_BINARY_OP(Operator) |
#define | ANALYZE_VARS_IN_UNARY_OP(Operator) |
#define | ANALYZE_VARS_IN_UNARY_INC_DEC_OP(Operator) |
#define | ANALYZE_VARS_IN_ACCESS_OP(Operator) |
#define ANALYZE_VARS_IN_ACCESS_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_rhs_operand(), left_of_assignment, \ read_write, member_access, \ function_parameter, is_precached_function, \ outer_variable); \ analyze_expression(op->get_lhs_operand(), left_of_assignment, \ read_write, true, function_parameter, \ is_precached_function, outer_variable); \ return; \ }
#define ANALYZE_VARS_IN_BINARY_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_lhs_operand(), false, false, false, \ function_parameter, is_precached_function, outer_variable); \ analyze_expression(op->get_rhs_operand(), false, false, false, \ function_parameter, is_precached_function, outer_variable); \ return; \ }
#define ANALYZE_VARS_IN_COMPOUND_ASSIGN_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_lhs_operand(), true, false, false, \ function_parameter, is_precached_function, outer_variable); \ analyze_expression(op->get_lhs_operand(), false, false, false, \ function_parameter, is_precached_function, outer_variable); \ analyze_expression(op->get_rhs_operand(), false, false, false, \ function_parameter, is_precached_function, outer_variable); \ return; \ }
#define ANALYZE_VARS_IN_UNARY_INC_DEC_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_operand(), false, true, false, \ function_parameter, is_precached_function, outer_variable); \ return; \ }
#define ANALYZE_VARS_IN_UNARY_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_operand(), false, false, false, \ function_parameter, is_precached_function, outer_variable); \ return; \ }