Home | History | Annotate | Download | only in lint1

Lines Matching defs:cstmt

80 static control_statement *cstmt;
149 cs->c_surrounding = cstmt;
150 cstmt = cs;
156 while (cstmt->c_kind != kind)
157 cstmt = cstmt->c_surrounding;
159 control_statement *cs = cstmt;
160 cstmt = cs->c_surrounding;
344 cstmt->c_had_return_noval = true;
348 if (cstmt->c_had_return_noval && cstmt->c_had_return_value &&
364 cstmt->c_had_return_value, funcsym->s_osdef,
461 for (cs = cstmt; cs != NULL && !cs->c_switch; cs = cs->c_surrounding)
525 for (cs = cstmt; cs != NULL && !cs->c_switch; cs = cs->c_surrounding)
585 cstmt->c_always_then = reached;
592 cstmt->c_reached_end_of_then = reached;
594 set_reached(!cstmt->c_always_then);
600 if (cstmt->c_reached_end_of_then)
602 else if (cstmt->c_always_then)
650 cstmt->c_switch = true;
651 cstmt->c_switch_type = tp;
652 cstmt->c_switch_expr = tn;
664 lint_assert(cstmt->c_switch_type != NULL);
666 if (cstmt->c_switch_type->t_is_enum) {
672 lint_assert(cstmt->c_switch_type->u.enumer != NULL);
673 for (esym = cstmt->c_switch_type->u.enumer->en_first_enumerator;
677 nclab = (int)cstmt->c_case_labels.len;
678 if (hflag && eflag && nclab < nenum && !cstmt->c_default)
685 if (cstmt->c_break) {
692 } else if (cstmt->c_default ||
693 (hflag && cstmt->c_switch_type->t_is_enum &&
722 cstmt->c_loop = true;
723 cstmt->c_maybe_endless = is_nonzero(tn);
735 set_reached(!cstmt->c_maybe_endless || cstmt->c_break);
747 cstmt->c_loop = true;
753 if (cstmt->c_continue)
760 cstmt->c_maybe_endless = constant_is_nonzero(tn);
761 if (!cstmt->c_maybe_endless && cstmt->c_continue)
768 if (cstmt->c_maybe_endless)
770 if (cstmt->c_break)
787 cstmt->c_loop = true;
794 cstmt->c_for_expr3_mem = expr_save_memory();
795 cstmt->c_for_expr3 = tn3;
796 cstmt->c_for_expr3_pos = curr_pos;
797 cstmt->c_for_expr3_csrc_pos = csrc_pos;
807 cstmt->c_maybe_endless = tn2 == NULL || is_nonzero(tn2);
817 if (cstmt->c_continue)
820 expr_restore_memory(cstmt->c_for_expr3_mem);
821 tnode_t *tn3 = cstmt->c_for_expr3;
825 curr_pos = cstmt->c_for_expr3_pos;
826 csrc_pos = cstmt->c_for_expr3_csrc_pos;
843 set_reached(cstmt->c_break || !cstmt->c_maybe_endless);
859 control_statement *cs = cstmt;
880 for (cs = cstmt; cs != NULL && !cs->c_loop; cs = cs->c_surrounding)
941 control_statement *cs = cstmt;