Home
last modified time | relevance | path

Searched refs:lint_assert (Results 1 – 9 of 9) sorted by relevance

/netbsd/src/usr.bin/xlint/lint1/
Ddecl.c112 lint_assert((int)t < (int)STRUCT); in gettyp()
317 lint_assert(dcs->d_type == NULL); in dcs_add_type()
318 lint_assert(dcs->d_abstract_type == NO_TSPEC); in dcs_add_type()
319 lint_assert(dcs->d_sign_mod == NO_TSPEC); in dcs_add_type()
320 lint_assert(dcs->d_rank_mod == NO_TSPEC); in dcs_add_type()
527 lint_assert(dcs != NULL); in end_declaration_level()
577 lint_assert(false); in end_declaration_level()
679 lint_assert(t == NO_TSPEC); in dcs_merge_declaration_specifiers()
680 lint_assert(s == NO_TSPEC); in dcs_merge_declaration_specifiers()
681 lint_assert(l == NO_TSPEC); in dcs_merge_declaration_specifiers()
[all …]
Dinit.c185 lint_assert(is_struct_or_union(tp->t_tspec)); in first_named_member()
294 lint_assert(dr->dr_member != NULL); in designator_type()
303 lint_assert( in designator_type()
321 lint_assert(dr->dr_subscript == 0); in designator_debug()
327 lint_assert(dr->dr_member == NULL); in designator_debug()
330 lint_assert(dr->dr_member == NULL); in designator_debug()
331 lint_assert(dr->dr_subscript == 0); in designator_debug()
361 lint_assert(dn->dn_len > 0); in designation_last()
454 lint_assert(bl->bl_type != NULL); in brace_level_debug()
494 lint_assert(dr->dr_member != NULL); in brace_level_advance()
[all …]
Dtree.c116 lint_assert(p1->tt_rank_kind == p2->tt_rank_kind); in portable_rank_cmp()
117 lint_assert(p1->tt_rank_value > 0); in portable_rank_cmp()
118 lint_assert(p2->tt_rank_value > 0); in portable_rank_cmp()
125 lint_assert(is_integer(tp->t_tspec)); in width_in_bits()
458 lint_assert(is_integer(tp->t_tspec)); in ic_con()
493 lint_assert(is_integer(tn->tn_type->t_tspec)); in ic_expr()
618 lint_assert(ln->tn_type->t_tspec == PTR); in build_op()
763 lint_assert(sym->s_kind == SK_VCFT || sym->s_kind == SK_MEMBER); in build_name()
1119 lint_assert(false); in fold_unsigned_integer()
1214 lint_assert(false); in fold_signed_integer()
[all …]
Dfunc.c212 lint_assert(sym->s_block_level == 1); in begin_function()
256 lint_assert(param->s_name == unnamed); in begin_function()
260 lint_assert(param->s_name != unnamed); in begin_function()
371 lint_assert(dcs->d_enclosing == NULL); in end_function()
372 lint_assert(dcs->d_kind == DLK_EXTERN); in end_function()
402 lint_assert(case_expr->tn_op == CON); in check_case_label_bitand()
488 lint_assert(cs->c_switch_type != NULL); in check_case_label()
664 lint_assert(cstmt->c_switch_type != NULL); in stmt_switch_expr_stmt()
672 lint_assert(cstmt->c_switch_type->u.enumer != NULL); in stmt_switch_expr_stmt()
Dlint1.h574 #define lint_assert(cond) \ macro
666 lint_assert(tn->tn_op == CON); in constant_is_nonzero()
667 lint_assert(tn->tn_type->t_tspec == tn->u.value.v_tspec); in constant_is_nonzero()
705 lint_assert(i < 64); in bit()
718 lint_assert(bitsize > 0); in value_bits()
Ddebug.c111 lint_assert(debug_indentation > 0); in debug_indent_dec()
235 lint_assert(tn->tn_type->t_tspec == BOOL); in debug_node()
265 lint_assert(has_operands(tn)); in debug_node()
266 lint_assert(tn->u.ops.left != NULL); in debug_node()
270 lint_assert(is_binary(tn) == (tn->u.ops.right != NULL)); in debug_node()
565 lint_assert(t == BOOL); in debug_token()
Dlex.c341 lint_assert(level != -1); in debug_symtab()
485 lint_assert(block_level >= sym->s_block_level); in lex_name()
588 lint_assert(eptr == cp + len); in lex_integer_constant()
656 lint_assert(eptr == cp + len); in lex_floating_constant()
1155 lint_assert(pp_line.len == 0); in lex_pp_begin()
1463 lint_assert(sym->s_kind == sym_kind); in getsym()
1482 lint_assert(dl->d_kind == DLK_AUTO); in getsym()
1592 lint_assert(sym->s_block_level >= next->s_block_level); in inssym()
1616 lint_assert(sym->s_block_level <= block_level); in pushdown()
Demit1.c106 lint_assert(tt[ts] != '?' && ss[ts] != '?'); in outtype()
206 lint_assert(def == DECL); in outsym()
Dcgram.y811 lint_assert($2 != NULL);
2678 lint_assert(yychar < 0); in read_balanced_token_sequence()