/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_function_ptrs.c | 75 if (type->type != SYM_ARRAY && type->type != SYM_PTR) in xxx_is_array() 110 if (!array && type && type->type == SYM_ARRAY) in get_array_ptr() 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() 439 if (struct_type->type == SYM_ARRAY) { in global_variable()
|
H A D | smatch_buf_size.c | 136 if (type && type->type == SYM_ARRAY) in bytes_per_element() 143 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in bytes_per_element() 291 if (!type || type->type != SYM_ARRAY) in get_real_array_size_from_type() 412 if (type->type != SYM_ARRAY) in last_member_is_resizable() 497 if (type->type != SYM_ARRAY && type->type != SYM_PTR) in get_array_size_bytes_rl() 610 if (!type || type->type != SYM_ARRAY) in strip_ampersands() 669 if (type && type->type == SYM_ARRAY) in is_array_base() 832 if (!type || (type->type != SYM_PTR && type->type != SYM_ARRAY)) in match_call()
|
H A D | smatch_type.c | 46 if (type && type->type == SYM_ARRAY) in type_bytes() 57 if (!type || type->type != SYM_ARRAY) in array_bytes() 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() 239 if (sym->type != SYM_PTR && sym->type != SYM_ARRAY) in get_pointer_type() 846 } else if (type->type == SYM_ARRAY) { in type_str_helper()
|
H A D | check_memcpy_overflow.c | 60 if (!type || type->type != SYM_ARRAY) in bytes_to_end_of_struct() 144 if (!type || type->type != SYM_ARRAY) in ends_on_struct_member_boundary() 207 if (!type || type->type != SYM_ARRAY) in is_one_element_array()
|
H A D | smatch_struct_assignment.c | 126 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in remove_addr() 174 if (!right || !type || type->type == SYM_ARRAY) in handle_non_struct_assignments() 201 if (type->type == SYM_ARRAY) in set_inner_struct_members() 272 if (type->type == SYM_ARRAY) in __struct_members_copy()
|
H A D | check_array_condition.c | 38 if (!type || type->type != SYM_ARRAY) in match_condition()
|
H A D | dissect.c | 67 return type->type == SYM_PTR || type->type == SYM_ARRAY; in is_ptr() 108 break; case SYM_ARRAY: in fix_mode() 222 case SYM_ARRAY: in examine_sym_node() 545 if (type->type == SYM_ARRAY) { in do_initializer()
|
H A D | symbol.h | 63 SYM_ARRAY, enumerator 387 return type->type == SYM_PTR || type->type == SYM_ARRAY || type->type == SYM_FN; in is_ptr_type() 401 return type->type == SYM_ARRAY; in is_array_type()
|
H A D | smatch_address.c | 30 if (!type || type->type != SYM_ARRAY) in is_non_null_array() 273 if (!type || type->type != SYM_ARRAY) in get_address_rl()
|
H A D | check_dma_on_stack.c | 43 if (!sym || sym->type != SYM_ARRAY) in match_dma_func()
|
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 | smatch_type_val.c | 370 left_type->type != SYM_ARRAY) in is_uncasted_pointer_assign() 373 right_type->type != SYM_ARRAY) in is_uncasted_pointer_assign() 547 if (type && (type->type == SYM_ARRAY || type->type == SYM_STRUCT)) in match_global_assign()
|
H A D | check_uninitialized.c | 45 base_type->type == SYM_ARRAY || in mark_members_uninitialized() 62 if (type->type == SYM_ARRAY) in match_declarations()
|
H A D | symbol.c | 371 struct symbol *arr_new = alloc_symbol(node->pos, SYM_ARRAY); in implicit_array_size() 407 if (bit_size < 0 && base_type->type == SYM_ARRAY) { in examine_node_type() 469 case SYM_ARRAY: in examine_symbol_type() 532 [SYM_ARRAY] = "array", in get_type_name()
|
H A D | smatch_mtag.c | 246 if (!type || type->type != SYM_ARRAY) in get_array_mtag_offset() 431 (type->type == SYM_ARRAY || type->type == SYM_FN) && in get_mtag_sval()
|
H A D | smatch_constraints_required.c | 67 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in bytes_per_element() 120 if (!array_type || array_type->type != SYM_ARRAY) in handle_zero_size_arrays()
|
H A D | evaluate.c | 101 struct symbol *array = alloc_symbol(expr->pos, SYM_ARRAY); in evaluate_string() 372 [SYM_ARRAY] = TYPE_PTR | TYPE_COMPOUND, in classify_type() 406 return type->type == SYM_ARRAY && is_byte_type(type->ctype.base_type); in is_string_type() 737 case SYM_ARRAY: in type_difference() 1617 case SYM_ARRAY: in examine_fn_arguments() 1620 if (arg->type == SYM_ARRAY) in examine_fn_arguments() 1678 if (degenerate && sym->type == SYM_ARRAY) { in create_pointer() 1709 case SYM_ARRAY: in degenerate() 1831 case SYM_ARRAY: in evaluate_dereference() 2287 case SYM_ARRAY: in evaluate_ptrsizeof() [all …]
|
H A D | smatch_array_values.c | 96 if (!type || type->type != SYM_ARRAY) in get_array_name()
|
H A D | ctags.c | 156 case SYM_ARRAY: in examine_symbol()
|
H A D | ast-inspect.c | 108 [SYM_ARRAY] = "SYM_ARRAY", in symbol_type_name()
|
H A D | smatch_flow.c | 1365 if (type->type == SYM_ARRAY) in set_unset_to_zero() 1420 if (type && type->type == SYM_ARRAY) in fake_member_assigns_helper() 1462 if (type && type->type == SYM_ARRAY) in fake_element_assigns_helper() 1495 if (get_real_base_type(sym)->type == SYM_ARRAY) in do_initializer_stuff() 1524 if (get_real_base_type(sym)->type == SYM_ARRAY) { in fake_global_assign()
|
H A D | show-parse.c | 57 [SYM_ARRAY] = "arry", in do_debug_symbol() 303 if (!sym || (sym->type != SYM_NODE && sym->type != SYM_ARRAY && in do_show_type() 384 case SYM_ARRAY: in do_show_type()
|
H A D | check_deref.c | 173 if ((get_base_type(sym))->type == SYM_ARRAY) in match_declarations()
|
H A D | smatch_mtag_data.c | 140 type->type == SYM_ARRAY || in invalid_type()
|
H A D | smatch_helper.c | 161 if (type->type == SYM_ARRAY) in get_array_expr() 661 if (!type || type->type != SYM_ARRAY) in is_array() 766 if (type && type->type == SYM_ARRAY) in strip_expr_helper()
|