Lines Matching defs:call
225 * Print a warning if the return value assumed for a function call
231 * call as it's done for function arguments.
236 fcall_t *call;
250 for (call = hte->h_calls; call != NULL; call = call->f_next) {
251 tp2 = TP(call->f_type)->t_subt;
254 if (!call->f_rused) {
274 mkpos(&def->s_pos), mkpos(&call->f_pos));
281 mkpos(&def->s_pos), mkpos(&call->f_pos));
335 * not match the function definition, declaration or another call
343 fcall_t *calls, *call, *call1;
353 * or prototype declaration, the first function call is used.
375 for (call = calls; call != NULL; call = call->f_next) {
376 if ((tp2 = TP(call->f_type))->t_tspec != FUNC)
386 chkau(hte, n, def, decl, pos1p, call1, call,
397 * of the call must be at least as large as the
402 * prototype with ... and function call with at least
409 total_args(n, ap2), mkpos(&call->f_pos));
419 for (ai = call->f_args; ai != NULL; ai = ai->a_next) {
426 printflike(hte, call, n, ai->a_fstrg, ap2);
428 scanflike(hte, call, n, ai->a_fstrg, ap2);
434 * Check a single argument in a function call.
440 * pos1p position of definition, declaration of first call
441 * call1 first call, if both def and decl are old-style def/decl
442 * call checked call
444 * arg2 currently checked argument of call
449 fcall_t *call1, fcall_t *call, type_t *arg1, type_t *arg2)
457 * function call (call) with the definition. Otherwise, if a function
459 * != NULL && TP(decl->s_type)->t_proto), we compare the call with this
460 * declaration. Otherwise we compare it with the first call we have
529 * treat a definition like a call with variable
545 * (second) call, if this was a constant, otherwise to
548 for (ai = call->f_args; ai != NULL; ai = ai->a_next) {
577 for (ai = call->f_args; ai != NULL; ai = ai->a_next) {
592 type_name(arg2), mkpos(&call->f_pos));
600 printflike(const hte_t *hte, fcall_t *call, int n, const char *fmt, type_t **ap)
614 too_many_arguments(hte, call);
618 bad_format_string(hte, call);
661 too_few_arguments(hte, call);
666 inconsistent_arguments(hte, call, n);
680 too_few_arguments(hte, call);
685 inconsistent_arguments(hte, call, n);
687 bad_format_string(hte, call);
707 bad_format_string(hte, call);
714 bad_format_string(hte, call);
719 too_few_arguments(hte, call);
728 bad_format_string(hte, call);
734 inconsistent_arguments(hte, call, n);
737 inconsistent_arguments(hte, call, n);
744 inconsistent_arguments(hte, call, n);
748 bad_format_string(hte, call);
752 inconsistent_arguments(hte, call, n);
755 inconsistent_arguments(hte, call, n);
759 inconsistent_arguments(hte, call, n);
762 inconsistent_arguments(hte, call, n);
766 bad_format_string(hte, call);
778 bad_format_string(hte, call);
780 inconsistent_arguments(hte, call, n);
783 bad_format_string(hte, call);
785 inconsistent_arguments(hte, call, n);
788 bad_format_string(hte, call);
791 inconsistent_arguments(hte, call, n);
795 bad_format_string(hte, call);
797 inconsistent_arguments(hte, call, n);
800 bad_format_string(hte, call);
802 inconsistent_arguments(hte, call, n);
805 inconsistent_arguments(hte, call, n);
808 inconsistent_arguments(hte, call, n);
811 inconsistent_arguments(hte, call, n);
814 bad_format_string(hte, call);
827 scanflike(const hte_t *hte, fcall_t *call, int n, const char *fmt, type_t **ap)
841 too_many_arguments(hte, call);
845 bad_format_string(hte, call);
877 bad_format_string(hte, call);
884 too_few_arguments(hte, call);
894 bad_format_string(hte, call);
900 inconsistent_arguments(hte, call, n);
902 inconsistent_arguments(hte, call, n);
904 inconsistent_arguments(hte, call, n);
906 inconsistent_arguments(hte, call, n);
911 bad_format_string(hte, call);
924 bad_format_string(hte, call);
929 bad_format_string(hte, call);
938 bad_format_string(hte, call);
947 bad_format_string(hte, call);
953 bad_format_string(hte, call);
962 bad_format_string(hte, call);
971 bad_format_string(hte, call);
977 bad_format_string(hte, call);
980 bad_format_string(hte, call);
984 bad_format_string(hte, call);
991 inconsistent_arguments(hte, call, n);
994 inconsistent_arguments(hte, call, n);
999 bad_format_string(hte, call);
1002 inconsistent_arguments(hte, call, n);
1005 inconsistent_arguments(hte, call, n);
1009 bad_format_string(hte, call);
1018 bad_format_string(const hte_t *hte, fcall_t *call)
1022 msg(13, hte->h_name, mkpos(&call->f_pos));
1026 inconsistent_arguments(const hte_t *hte, fcall_t *call, int n)
1030 msg(14, hte->h_name, mkpos(&call->f_pos), n);
1034 too_few_arguments(const hte_t *hte, fcall_t *call)
1038 msg(15, hte->h_name, mkpos(&call->f_pos));
1042 too_many_arguments(const hte_t *hte, fcall_t *call)
1046 msg(16, hte->h_name, mkpos(&call->f_pos));
1070 fcall_t *call;
1097 for (call = hte->h_calls; call != NULL; call = call->f_next) {
1098 used |= call->f_rused || call->f_rdisc;
1099 ignored |= !call->f_rused && !call->f_rdisc;
1110 for (call = hte->h_calls; call != NULL; call = call->f_next) {
1111 if (call->f_rused)
1113 msg(10, hte->h_name, mkpos(&call->f_pos));