mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 08:26:06 +00:00

method parameter, provide a note pointing at the parameter itself so the user does not have to manually look for the function/method being called and match up parameters to arguments. For example, we now get: t.c:4:5: warning: incompatible pointer types passing 'long *' to parameter of type 'int *' [-pedantic] f(long_ptr); ^~~~~~~~ t.c:1:13: note: passing argument to parameter 'x' here void f(int *x); ^ llvm-svn: 102038
12 lines
165 B
C
12 lines
165 B
C
/* For use with the functions.c test */
|
|
|
|
|
|
|
|
|
|
int f0(int x, int y, ...);
|
|
float *f1(float x, float y);
|
|
|
|
void g0(int *);
|
|
|
|
void do_abort(int) __attribute__((noreturn));
|