Home
last modified time | relevance | path

Searched refs:EXPR_PREOP (Results 1 – 25 of 68) sorted by relevance

123

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_uninitialized.c94 if (right->type == EXPR_PREOP && right->op == '&') in match_assign()
155 if (expr->type != EXPR_PREOP) in match_dereferences()
250 if (arg->type != EXPR_PREOP || arg->op != '&') in match_call_struct_members()
282 while (parent->type == EXPR_PREOP && parent->op == '(') { in is_being_modified()
287 if (parent->type == EXPR_PREOP && parent->op == '&') in is_being_modified()
328 if (!arg || arg->type != EXPR_PREOP || arg->op != '&') in match_untracked()
343 if (arg->type != EXPR_PREOP || arg->op != '&') in match_ignore_param()
H A Dsmatch_helper.c169 if (parent->type == EXPR_PREOP && parent->op == '*') in get_array_expr()
192 if (deref->type == EXPR_PREOP && op == '*') { in __get_variable_from_expr()
195 if (unop->type == EXPR_PREOP && unop->op == '&') { in __get_variable_from_expr()
228 case EXPR_PREOP: { in __get_variable_from_expr()
521 case EXPR_PREOP: in get_complication_score()
672 if (expr->type == EXPR_PREOP && expr->op == '*') in get_array_base()
684 if (expr->type == EXPR_PREOP && expr->op == '*') in get_array_offset()
702 if (expr->type != EXPR_PREOP) in get_expression_statement()
720 if (expr->type == EXPR_PREOP) { in strip_parens()
747 case EXPR_PREOP: { in strip_expr_helper()
[all …]
H A Dcheck_precedence.c50 if (expr->type == EXPR_PREOP && expr->op == '!') in is_bool_op()
66 if (expr->left->type == EXPR_PREOP && expr->left->op == '!') { in match_condition()
67 if (expr->left->unop->type == EXPR_PREOP && expr->left->unop->op == '!') in match_condition()
H A Dsmatch_function_ptrs.c61 if (expr->type == EXPR_PREOP && expr->op == '*') { in xxx_is_array()
86 if (expr->type == EXPR_PREOP && expr->op == '*') in xxx_get_array_base()
190 if (expr->type == EXPR_PREOP && expr->op == '*') in get_fnptr_name()
250 if (tmp->type == EXPR_PREOP && tmp->op == '&') in match_passes_function_pointer()
324 if (right->type == EXPR_PREOP && right->op == '&') in match_function_assign()
388 if (expr->type == EXPR_PREOP && expr->op == '&') in match_returns_function_pointer()
H A Dcheck_memcpy_overflow.c56 if (expr->type == EXPR_PREOP && expr->op == '&') in bytes_to_end_of_struct()
66 if (deref->type == EXPR_PREOP && deref->op == '*') in bytes_to_end_of_struct()
83 if (expr->type != EXPR_PREOP || expr->op != '&') in size_of_union()
140 if (expr->type == EXPR_PREOP && expr->op == '&') { in ends_on_struct_member_boundary()
199 if (expr->type == EXPR_PREOP && expr->op == '&') in is_one_element_array()
H A Dcheck_passes_sizeof.c42 if (!expr || expr->type != EXPR_PREOP || expr->op != '*') in remove_dereference()
45 if (!expr || expr->type != EXPR_PREOP || expr->op != '*') in remove_dereference()
H A Dcheck_free.c66 while (parent && parent->type == EXPR_PREOP && parent->op == '(') in match_symbol()
68 if (parent && parent->type == EXPR_PREOP && parent->op == '&') in match_symbol()
85 if (expr->type != EXPR_PREOP) in match_dereferences()
H A Dcheck_rosenberg.c137 if (ptr->type != EXPR_PREOP || ptr->op != '&') in match_clear()
242 if (data->type == EXPR_PREOP && data->op == '&') in check_was_initialized()
261 if (data->type == EXPR_PREOP && data->op == '&') in check_skb_put()
280 if (data->type != EXPR_PREOP || data->op != '&') in match_copy_to_user()
H A Dsmatch_address.c218 if (expr->type == EXPR_PREOP && expr->op == '&') in handle_fn_address()
267 if (expr->type == EXPR_PREOP && expr->op == '&') { in get_address_rl()
323 if (unop->type == EXPR_PREOP && unop->op == '*') in get_address_rl()
H A Dcheck_zero_to_err_ptr.c42 while (next->type == EXPR_PREOP && next->op == '!') in next_line_is_if()
64 while (next->type == EXPR_PREOP && next->op == '!') in next_line_checks_IS_ERR()
H A Dcheck_free_strict.c83 while (parent && parent->type == EXPR_PREOP && parent->op == '(') in match_symbol()
85 if (parent && parent->type == EXPR_PREOP && parent->op == '&') in match_symbol()
99 if (expr->type != EXPR_PREOP) in match_dereferences()
H A Dsmatch_buf_size.c134 if (expr->type == EXPR_PREOP && expr->op == '&') { in bytes_per_element()
304 if (expr->type == EXPR_PREOP && expr->op == '&') in get_real_array_size()
335 if (expr->type != EXPR_PREOP || expr->op != '&') in get_bytes_from_address()
359 while (expr && expr->type == EXPR_PREOP && expr->op == '&') { in remove_addr_fluff()
361 if (tmp->type != EXPR_PREOP) in remove_addr_fluff()
433 if (expr->type == EXPR_PREOP && expr->op == '&') in get_stored_size_end_struct_bytes()
605 if (expr->type != EXPR_PREOP) in strip_ampersands()
H A Dsmatch_container_of.c110 if (expr->type == EXPR_PREOP && expr->op == '*') in get_deref_count()
125 if (expr->type == EXPR_PREOP && expr->op == '*') in get_partial_deref()
147 if (expr->type == EXPR_PREOP && expr->op == '*') in partial_deref_to_offset_str()
246 if (container->type == EXPR_PREOP && container->op == '&') in get_container_name_helper()
248 if (expr->type == EXPR_PREOP && expr->op == '&') in get_container_name_helper()
H A Dsmatch_recurse.c40 case EXPR_PREOP: in recurse()
180 if (expr->type != EXPR_PREOP && expr->type != EXPR_POSTOP) in has_inc_dec_helper()
H A Dsmatch_mtag.c356 if (expr->type == EXPR_PREOP && expr->op == '*') { in expr_to_mtag_offset()
370 if (expr->type == EXPR_PREOP && expr->op == '*') { in expr_to_mtag_offset()
435 if (expr->type == EXPR_PREOP && expr->op == '&') { in get_mtag_sval()
H A Dcheck_no_effect.c32 case EXPR_PREOP: in match_stmt()
H A Dcheck_return_negative_var.c31 if (ret_value->type != EXPR_PREOP || ret_value->op != '-') in match_return()
H A Dast-inspect.c162 [EXPR_PREOP] = "EXPR_PREOP", in expression_type_name()
212 case EXPR_PREOP: in inspect_expression()
H A Dcheck_assign_vs_compare.c39 if (right->type != EXPR_PREOP || in check_address()
H A Dcheck_cast_assign.c26 if (!expr || expr->type != EXPR_PREOP || expr->op != '*') in get_cast_type()
H A Dcheck_deref.c143 if (expr->type != EXPR_PREOP) in match_dereferences()
209 if (right->type != EXPR_PREOP || right->op != '&') in match_assigns_address()
H A Devaluate.c88 expr->type = EXPR_PREOP; in evaluate_symbol_expression()
127 expr->type = EXPR_PREOP; in evaluate_string()
315 case EXPR_PREOP: in cast_to()
420 case EXPR_PREOP: in bad_expr_type()
1750 expr->type = EXPR_PREOP; in degenerate()
1772 if (op->op != '*' || op->type != EXPR_PREOP) { in evaluate_addressof()
2136 expr->type = EXPR_PREOP; in evaluate_member_dereference()
2155 case EXPR_PREOP: in is_promoted()
2955 expr->type = EXPR_PREOP; in evaluate_cast()
3090 if (fn->type != EXPR_PREOP) in evaluate_symbol_call()
[all …]
H A Dcheck_dma_on_stack.c32 if (arg->type == EXPR_PREOP && arg->op == '&') { in match_dma_func()
H A Dcheck_deref_check.c35 if (expr->type != EXPR_PREOP) in match_dereference()
H A Dcheck_macros.c62 if (expr->left->type == EXPR_PREOP) in match_join()

123