On 08/09/2013 14:23, Sebastian Ramacher wrote:
> $ iwyu `pkg-config --cflags glib-2.0` test.c
> In file included from test.c:1:
> In file included from /usr/include/glib-2.0/glib.h:32:
> In file included from /usr/include/glib-2.0/glib/galloca.h:34:
> In file included from /usr/include/gl
Package: iwyu
Version: 3.3-1
Let's consider the following example:
$ cat test.c
#include
#include
int main() {
char* f = g_strdup_printf("%s", "test");
printf("%s\n", f);
g_free(f);
return 0;
}
Running iwyu tells me to replace glib.h:
$ iwyu `pkg-config --cflags g
2 matches
Mail list logo