Home
last modified time | relevance | path

Searched refs:SYM_ARRAY (Results 1 – 25 of 37) sorted by relevance

12

/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_function_ptrs.c75 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 Dsmatch_buf_size.c136 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 Dsmatch_type.c46 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 Dcheck_memcpy_overflow.c60 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 Dsmatch_struct_assignment.c126 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 Dcheck_array_condition.c38 if (!type || type->type != SYM_ARRAY) in match_condition()
H A Ddissect.c67 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 Dsymbol.h63 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 Dsmatch_address.c30 if (!type || type->type != SYM_ARRAY) in is_non_null_array()
273 if (!type || type->type != SYM_ARRAY) in get_address_rl()
H A Dcheck_dma_on_stack.c43 if (!sym || sym->type != SYM_ARRAY) in match_dma_func()
H A Dsmatch_passes_array_size.c56 if (!type || (type->type != SYM_PTR && type->type != SYM_ARRAY)) in match_call()
H A Dsmatch_type_val.c370 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 Dcheck_uninitialized.c45 base_type->type == SYM_ARRAY || in mark_members_uninitialized()
62 if (type->type == SYM_ARRAY) in match_declarations()
H A Dsymbol.c371 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 Dsmatch_mtag.c246 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 Dsmatch_constraints_required.c67 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 Devaluate.c101 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 Dsmatch_array_values.c96 if (!type || type->type != SYM_ARRAY) in get_array_name()
H A Dctags.c156 case SYM_ARRAY: in examine_symbol()
H A Dast-inspect.c108 [SYM_ARRAY] = "SYM_ARRAY", in symbol_type_name()
H A Dsmatch_flow.c1365 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 Dshow-parse.c57 [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 Dcheck_deref.c173 if ((get_base_type(sym))->type == SYM_ARRAY) in match_declarations()
H A Dsmatch_mtag_data.c140 type->type == SYM_ARRAY || in invalid_type()
H A Dsmatch_helper.c161 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()

12