/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_uninitialized.c | 94 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 D | smatch_helper.c | 169 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 D | check_precedence.c | 50 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 D | smatch_function_ptrs.c | 61 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 D | check_memcpy_overflow.c | 56 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 D | check_passes_sizeof.c | 42 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 D | check_free.c | 66 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 D | check_rosenberg.c | 137 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 D | smatch_address.c | 218 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 D | check_zero_to_err_ptr.c | 42 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 D | check_free_strict.c | 83 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 D | smatch_buf_size.c | 134 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 D | smatch_container_of.c | 110 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 D | smatch_recurse.c | 40 case EXPR_PREOP: in recurse() 180 if (expr->type != EXPR_PREOP && expr->type != EXPR_POSTOP) in has_inc_dec_helper()
|
H A D | smatch_mtag.c | 356 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 D | check_no_effect.c | 32 case EXPR_PREOP: in match_stmt()
|
H A D | check_return_negative_var.c | 31 if (ret_value->type != EXPR_PREOP || ret_value->op != '-') in match_return()
|
H A D | ast-inspect.c | 162 [EXPR_PREOP] = "EXPR_PREOP", in expression_type_name() 212 case EXPR_PREOP: in inspect_expression()
|
H A D | check_assign_vs_compare.c | 39 if (right->type != EXPR_PREOP || in check_address()
|
H A D | check_cast_assign.c | 26 if (!expr || expr->type != EXPR_PREOP || expr->op != '*') in get_cast_type()
|
H A D | check_deref.c | 143 if (expr->type != EXPR_PREOP) in match_dereferences() 209 if (right->type != EXPR_PREOP || right->op != '&') in match_assigns_address()
|
H A D | evaluate.c | 88 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 D | check_dma_on_stack.c | 32 if (arg->type == EXPR_PREOP && arg->op == '&') { in match_dma_func()
|
H A D | check_deref_check.c | 35 if (expr->type != EXPR_PREOP) in match_dereference()
|
H A D | check_macros.c | 62 if (expr->left->type == EXPR_PREOP) in match_join()
|