Home | History | Annotate | Download | only in lint1

Lines Matching refs:tn

79 /* Return whether tn has the form '(c = getopt(argc, argv, "str")) != -1'. */
81 is_getopt_condition(const tnode_t *tn, char **out_options)
87 if (tn != NULL
88 && tn->tn_op == NE
90 && tn->u.ops.right->tn_op == CON
91 && tn->u.ops.right->u.value.v_tspec == INT
92 && tn->u.ops.right->u.value.u.integer == -1
94 && tn->u.ops.left->tn_op == ASSIGN
95 && tn->u.ops.left->u.ops.right->tn_op == CALL
96 && (call = tn->u.ops.left->u.ops.right->u.call)->func->tn_op == ADDR
148 check_getopt_begin_while(const tnode_t *tn)
151 if (!is_getopt_condition(tn, &ck.options))