/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_type.c | 102 if (left->type == SYM_PTR || left->type == SYM_ARRAY) in get_binop_type() 104 if (right->type == SYM_PTR || right->type == SYM_ARRAY) in get_binop_type() 156 if (sym->type == SYM_PTR) in get_symbol_from_deref() 239 if (sym->type != SYM_PTR && sym->type != SYM_ARRAY) in get_pointer_type() 249 sym = alloc_symbol(expr->pos, SYM_PTR); in fake_pointer_sym() 439 if (sym && sym->type == SYM_PTR) in returns_pointer() 523 if (!type || type->type != SYM_PTR) in is_void_pointer() 536 if (!type || type->type != SYM_PTR) in is_char_pointer() 556 if (!type || type->type != SYM_PTR) in is_struct_ptr() 601 if (one->type == SYM_PTR) in types_equiv() [all …]
|
H A D | symbol.c | 215 if (!base_type || base_type->type == SYM_PTR) in examine_base_type() 475 case SYM_PTR: in examine_symbol_type() 530 [SYM_PTR] = "pointer", in get_type_name() 785 { &string_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &char_ctype }, 786 { &ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype }, 787 { &null_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype }, 788 { &label_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype }, 789 { &lazy_ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype }, 790 { &int_ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &int_ctype }, 791 { &uint_ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &uint_ctype }, [all …]
|
H A D | smatch_function_ptrs.c | 75 if (type->type != SYM_ARRAY && type->type != SYM_PTR) in xxx_is_array() 167 if (type && type->type == SYM_PTR) in get_returned_ptr() 225 if (type && type->type == SYM_PTR) { in get_fnptr_name() 254 if (type && type->type == SYM_PTR) in match_passes_function_pointer() 293 if (type->type == SYM_PTR || type->type == SYM_ARRAY) { in can_hold_function_ptr() 299 if (type->type == SYM_PTR || type->type == SYM_ARRAY) { in can_hold_function_ptr() 347 if (type->type == SYM_PTR || type->type == SYM_ARRAY) { in match_function_assign() 382 if (!type || type->type != SYM_PTR) in match_returns_function_pointer()
|
H A D | check_buffer_too_small_for_struct.c | 33 if (!left_type || left_type->type != SYM_PTR) in match_assign() 40 if (!right_type || right_type->type != SYM_PTR) in match_assign() 84 if (!left_type || left_type->type != SYM_PTR) in match_dereferences()
|
H A D | smatch_container_of.c | 34 if (!type || type->type != SYM_PTR) in get_param_from_container_of() 63 if (!type || type->type != SYM_PTR) in get_offset_from_container_of() 296 if (!type || type->type != SYM_PTR) in is_fn_ptr() 389 if (!type || type->type != SYM_PTR) in get_member_from_offset() 411 if (base_type && base_type->type == SYM_PTR) in get_member_type_from_offset() 431 if (!type || type->type != SYM_PTR) in get_name_from_offset() 486 if (type->type != SYM_PTR) in save_vals() 518 if (type->type != SYM_PTR) in load_tag_info_sym()
|
H A D | symbol.h | 61 SYM_PTR, enumerator 371 if (sym->type == SYM_PTR) in is_signed_type() 387 return type->type == SYM_PTR || type->type == SYM_ARRAY || type->type == SYM_FN; in is_ptr_type() 437 case SYM_PTR: in is_scalar_type() 457 case SYM_PTR: in is_integral_type()
|
H A D | smatch_buf_size.c | 143 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in bytes_per_element() 341 if (type->type == SYM_PTR) in get_bytes_from_address() 445 if (!base_sym || base_sym->type != SYM_PTR) in get_stored_size_end_struct_bytes() 497 if (type->type != SYM_ARRAY && type->type != SYM_PTR) in get_array_size_bytes_rl() 651 if (type->type != SYM_PTR) in store_alloc() 658 if (type->type != SYM_BASETYPE && type->type != SYM_PTR) in store_alloc() 810 if (type->type != SYM_PTR) in is_type_bytes() 832 if (!type || (type->type != SYM_PTR && type->type != SYM_ARRAY)) in match_call()
|
H A D | smatch_untracked_param.c | 179 if (!type || type->type != SYM_PTR) in match_after_call() 257 if (!type || type->type != SYM_PTR) in match_param_assign() 278 if (!type || type->type != SYM_PTR) in match_param_assign_in_asm()
|
H A D | smatch_fn_arg_link.c | 58 if (type->type != SYM_PTR) in save_in_fn_ptr_data_link_table() 156 if (!type || type->type != SYM_PTR) in check_passes_fn_and_data()
|
H A D | smatch_about_fn_ptr_arg.c | 61 if (!type || type->type != SYM_PTR) in link_function_arg() 160 if (type && type->type == SYM_PTR) in match_assign_function()
|
H A D | smatch_struct_assignment.c | 76 if (type->type == SYM_PTR) { in get_struct_type() 126 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in remove_addr() 160 if (type->type == SYM_PTR) { in handle_non_struct_assignments() 418 (left_type->type != SYM_PTR && in __fake_struct_member_assignments()
|
H A D | smatch_type_val.c | 202 if (!type || type->type != SYM_PTR) in is_ignored_fake_assignment() 369 if (left_type->type != SYM_PTR && in is_uncasted_pointer_assign() 372 if (right_type->type != SYM_PTR && in is_uncasted_pointer_assign() 438 if (!left_type || left_type->type != SYM_PTR) in is_uncasted_fn_param_from_db()
|
H A D | smatch_type_links.c | 58 if (!type || type->type != SYM_PTR) in match_assign()
|
H A D | check_implicit_dependencies.c | 159 if (member_sym->type == SYM_PTR) in print_read_member_type() 194 if (member_sym->type == SYM_PTR) in print_write_member_type()
|
H A D | check_struct_type.c | 33 if (!left_type || left_type->type != SYM_PTR) in match_assign()
|
H A D | smatch_passes_array_size.c | 56 if (!type || (type->type != SYM_PTR && type->type != SYM_ARRAY)) in match_call()
|
H A D | check_kmalloc_wrong_size.c | 27 if (!type || type->type != SYM_PTR) in get_data_size()
|
H A D | smatch_kernel_user_data.c | 277 if (!type || type->type != SYM_PTR) in tag_as_user_data() 397 if (!sym || sym->type != SYM_PTR) in is_skb_data() 492 if (type && type->type == SYM_PTR) in set_points_to_user_data() 522 if (!left_type || left_type->type != SYM_PTR) in handle_struct_assignment() 537 if (!right_type || right_type->type != SYM_PTR) in handle_struct_assignment() 1186 while (tmp && tmp->type == SYM_PTR) in set_param_user_data()
|
H A D | dissect.c | 67 return type->type == SYM_PTR || type->type == SYM_ARRAY; in is_ptr() 224 case SYM_PTR: case SYM_FN: in examine_sym_node() 399 ret = alloc_symbol(unop->pos, SYM_PTR); in do_expression()
|
H A D | check_syscall_arg_type.c | 118 if (!type || type->type != SYM_PTR) in get_arg_type_from_type()
|
H A D | smatch_real_absolute.c | 116 if (type->type != SYM_PTR && type->type != SYM_BASETYPE && in match_assign()
|
H A D | smatch_constraints_required.c | 67 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in bytes_per_element() 109 if (!type || type->type != SYM_PTR) in handle_zero_size_arrays()
|
H A D | smatch_param_limit.c | 108 if (!estate_type(state) || estate_type(state)->type != SYM_PTR) in generify_mtag_range()
|
H A D | ctags.c | 152 case SYM_PTR: in examine_symbol()
|
H A D | ast-inspect.c | 106 [SYM_PTR] = "SYM_PTR", in symbol_type_name()
|