Home | History | Annotate | Download | only in lint1

Lines Matching refs:tnode_t

510 ic_expr(const tnode_t *tn)
576 possible_bits(const tnode_t *tn)
627 str_len(const tnode_t *tn)
640 static tnode_t *
641 build_op(op_t op, bool sys, type_t *type, tnode_t *ln, tnode_t *rn)
644 tnode_t *ntn = expr_alloc_tnode();
660 tnode_t *
664 tnode_t *n = expr_alloc_tnode();
673 static tnode_t *
677 tnode_t *n = expr_alloc_tnode();
784 tnode_t *
799 tnode_t *n = expr_alloc_tnode();
823 tnode_t *
838 tnode_t *n = expr_alloc_tnode();
857 tnode_t *
858 build_generic_selection(const tnode_t *expr,
861 tnode_t *default_result = NULL;
875 is_out_of_char_range(const tnode_t *tn)
885 const tnode_t *ln, tspec_t lt,
886 const tnode_t *rn, tspec_t rt)
911 check_integer_comparison(op_t op, tnode_t *ln, tnode_t *rn)
1027 static tnode_t *
1028 apply_usual_arithmetic_conversions(op_t op, tnode_t *tn, tspec_t t)
1045 balance(op_t op, tnode_t **lnp, tnode_t **rnp)
1079 static tnode_t *
1080 build_address(bool sys, tnode_t *tn)
1253 static tnode_t *
1254 fold_constant_integer(tnode_t *tn)
1313 tnode_t *cn = build_constant(tn->tn_type, v);
1322 static tnode_t *
1323 build_struct_access(op_t op, bool sys, tnode_t *ln, tnode_t *rn)
1339 tnode_t *ctn = build_integer_constant(PTRDIFF_TSPEC,
1343 tnode_t *ntn = build_op(PLUS, sys, ptr_tp, ln, ctn);
1359 static tnode_t *
1413 static tnode_t *
1414 build_prepost_incdec(op_t op, bool sys, tnode_t *ln)
1418 tnode_t *cn = ln->tn_type->t_tspec == PTR
1425 check_enum_array_index(const tnode_t *ln, const tnode_t *rn)
1477 static tnode_t *
1478 build_plus_minus(op_t op, bool sys, tnode_t *ln, tnode_t *rn)
1482 tnode_t *tmp = ln;
1498 tnode_t *elsz = subt_size_in_bytes(ln->tn_type);
1503 tnode_t *prod = build_op(MULT, sys, rn->tn_type, rn, elsz);
1516 tnode_t *raw_diff = build_op(op, sys, ptrdiff, ln, rn);
1520 tnode_t *elsz = subt_size_in_bytes(ln->tn_type);
1529 static tnode_t *
1530 build_bit_shift(op_t op, bool sys, tnode_t *ln, tnode_t *rn)
1542 is_null_pointer(const tnode_t *tn)
1580 static tnode_t *
1581 build_colon(bool sys, tnode_t *ln, tnode_t *rn)
1633 is_cast_redundant(const tnode_t *tn)
1690 static tnode_t *
1691 build_assignment(op_t op, bool sys, tnode_t *ln, tnode_t *rn)
1703 tnode_t *ctn = subt_size_in_bytes(ln->tn_type);
1755 static tnode_t *
1756 build_real_imag(op_t op, bool sys, tnode_t *ln)
1787 tnode_t *ntn = build_op(op, sys, gettyp(t), ln, NULL);
1793 is_confusing_precedence(op_t op, const tnode_t *operand, op_t *cop)
1826 check_precedence_confusion(tnode_t *tn)
1828 tnode_t *ln, *rn;
1849 static tnode_t *
1850 fold_constant_compare_zero(tnode_t *tn)
1919 static tnode_t *
1920 fold_constant_floating(tnode_t *tn)
2005 use(const tnode_t *tn)
2035 tnode_t *
2036 build_binary(tnode_t *ln, op_t op, bool sys, tnode_t *rn)
2077 tnode_t *ntn;
2181 tnode_t *
2182 build_unary(op_t op, bool sys, tnode_t *tn)
2263 remove_unknown_member(tnode_t *tn, sym_t *msym)
2288 struct_or_union_member(tnode_t *tn, op_t op, sym_t *msym)
2355 tnode_t *
2356 build_member_access(tnode_t *ln, op_t op, bool sys, sbuf_t *member)
2381 tnode_t *
2382 cconv(tnode_t *tn)
2407 const tnode_t *
2408 before_conversion(const tnode_t *tn)
2420 typeok_point(const tnode_t *ln, const type_t *ltp, tspec_t lt)
2466 typeok_incdec(op_t op, const tnode_t *tn, const type_t *tp)
2485 typeok_address(op_t op, const tnode_t *tn, const type_t *tp, tspec_t t)
2584 typeok_shr(const tnode_t *ln, tspec_t lt,
2585 const tnode_t *rn, tspec_t rt)
2629 typeok_shl_signed_to_msb(const tnode_t *ln, const tnode_t *rn)
2648 typeok_shl(const tnode_t *ln, tspec_t lt, const tnode_t *rn, tspec_t rt)
2662 typeok_shift(const tnode_t *ln, tspec_t lt, const tnode_t *rn, tspec_t rt)
2683 is_typeok_eq(const tnode_t *ln, tspec_t lt, const tnode_t *rn, tspec_t rt)
2723 check_pointer_comparison(op_t op, const tnode_t *ln, const tnode_t *rn)
2757 const tnode_t *ln, const type_t *ltp, tspec_t lt,
2758 const tnode_t *rn, const type_t *rtp, tspec_t rt)
2781 typeok_quest(tspec_t lt, const tnode_t *rn)
2817 typeok_colon(const tnode_t *ln, const type_t *ltp, tspec_t lt,
2818 const tnode_t *rn, const type_t *rtp, tspec_t rt)
2880 typeok_assign(op_t op, const tnode_t *ln, const type_t *ltp, tspec_t lt)
2972 is_direct_function_call(const tnode_t *tn, const char **out_name)
2996 is_const_char_pointer(const tnode_t *tn)
3021 is_const_pointer(const tnode_t *tn)
3028 check_unconst_function(const type_t *lstp, const tnode_t *rn)
3055 const tnode_t *rn,
3176 const tnode_t *ln, const tnode_t *rn)
3219 has_side_effect(const tnode_t *tn) /* NOLINT(misc-no-recursion) */
3244 is_void_cast(const tnode_t *tn)
3252 is_local_symbol(const tnode_t *tn)
3261 is_int_constant_zero(const tnode_t *tn)
3270 check_null_effect(const tnode_t *tn)
3290 const tnode_t *ln, const type_t *ltp, tspec_t lt,
3291 const tnode_t *rn, const type_t *rtp, tspec_t rt)
3377 check_bad_enum_operation(op_t op, const tnode_t *ln, const tnode_t *rn)
3395 check_enum_type_mismatch(op_t op, int arg, const tnode_t *ln, const tnode_t *rn)
3430 check_enum_int_mismatch(op_t op, int arg, const tnode_t *ln, const tnode_t *rn)
3469 const tnode_t *ln, const type_t *ltp,
3470 const tnode_t *rn, const type_t *rtp)
3487 const tnode_t *ln, const tnode_t *rn)
3533 promote_c90(const tnode_t *tn, tspec_t t, bool farg)
3568 tnode_t *
3569 promote(op_t op, bool farg, tnode_t *tn)
3591 op_t op, int arg, const type_t *tp, const tnode_t *tn)
3609 op_t op, int arg, const type_t *tp, const tnode_t *tn)
3624 tspec_t ot, const tnode_t *ptn)
3670 tnode_t *tn)
3685 tnode_t *ptn = promote(NOOP, true, tn);
3700 can_represent(const type_t *tp, const tnode_t *tn)
3725 const tnode_t *otn, tspec_t ot)
3746 type_t *tp, tnode_t *tn)
3789 convert_integer_from_pointer(op_t op, tspec_t nt, type_t *tp, tnode_t *tn)
3894 convert_pointer_from_pointer(type_t *ntp, tnode_t *tn)
3949 tnode_t *
3950 convert(op_t op, int arg, type_t *tp, tnode_t *tn)
3985 tnode_t *ntn = expr_alloc_tnode();
4283 tnode_t *
4287 tnode_t *tn = build_integer_constant(SIZEOF_TSPEC, size_in_bytes);
4293 tnode_t *
4329 tnode_t *tn = build_integer_constant(SIZEOF_TSPEC, offset_in_bytes);
4392 tnode_t *
4418 static tnode_t *
4419 cast_to_union(tnode_t *otn, bool sys, type_t *ntp)
4432 tnode_t *ntn = build_op(CVT, sys, ntp, otn, NULL);
4444 static tnode_t *
4445 null_pointer_offset(tnode_t *tn)
4448 const tnode_t *n = tn;
4465 tnode_t *
4466 cast(tnode_t *tn, bool sys, type_t *tp)
4529 add_function_argument(function_call *call, tnode_t *arg)
4541 tnode_t **new_args = expr_zero_alloc(
4557 static tnode_t *
4559 type_t *tp, tnode_t *tn)
4561 tnode_t *ln = xcalloc(1, sizeof(*ln));
4598 tnode_t *arg = call->args[i];
4655 const tnode_t *func = call->func;
4666 tnode_t *
4667 build_function_call(tnode_t *func, bool sys, function_call *call)
4688 tnode_t *ntn = expr_alloc_tnode();
4702 integer_constant(tnode_t *tn, bool required)
4756 expr(tnode_t *tn, bool used, bool cond, bool free_expr, bool is_do_while,
4790 check_array_index(const tnode_t *indir, bool taking_address)
4792 const tnode_t *plus, *arr, *idx;
4827 check_expr_addr(const tnode_t *ln, bool szof, bool fcall)
4852 check_expr_side_effect(const tnode_t *ln, bool szof)
4869 check_expr_assign(const tnode_t *ln, bool szof)
4881 check_expr_call(const tnode_t *tn, const tnode_t *ln,
4895 check_expr_op(op_t op, const tnode_t *ln, bool szof, bool fcall, bool eqwarn)
4950 check_expr_misc(const tnode_t *tn, bool vctx, bool cond,
4977 tnode_t *ln = tn->u.ops.left;
4978 tnode_t *rn = tn->u.ops.right;
5035 constant_addr(const tnode_t *tn, const sym_t **symp, ptrdiff_t *offsp)
5149 do_statement_expr(tnode_t *tn)
5162 tnode_t *
5165 tnode_t *tn;