add test with iwyu and fix all headers accordingly

This commit is contained in:
josch
2014-09-20 09:40:59 +02:00
parent 4b2563d800
commit d8e00119b4
39 changed files with 152 additions and 159 deletions

View File

@@ -18,14 +18,16 @@
*/
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <termios.h>
#include <unistd.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
static char*
_get_login_from_user(void);

View File

@@ -20,11 +20,12 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/apicalls.h"
#include "../mfshell.h"
#include "../../mfapi/folder.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_chdir(mfshell *mfshell, int argc, char **argv)

View File

@@ -18,14 +18,13 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_debug(mfshell *mfshell, int argc, char **argv)

View File

@@ -21,9 +21,11 @@
#include <stdio.h>
#include <string.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/apicalls.h"
#include "../mfshell.h"
#include "../../mfapi/file.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_file(mfshell *mfshell, int argc, char **argv)

View File

@@ -18,15 +18,17 @@
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <limits.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/apicalls.h"
#include "../mfshell.h"
#include "../../mfapi/file.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_get(mfshell *mfshell, int argc, char **argv)

View File

@@ -20,10 +20,9 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_help(mfshell *mfshell, int argc, char **argv)

View File

@@ -18,12 +18,14 @@
*/
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
static char*
_get_host_from_user(void);

View File

@@ -20,11 +20,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_lcd(mfshell *mfshell, int argc, char **argv)

View File

@@ -21,9 +21,11 @@
#include <stdio.h>
#include <string.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/apicalls.h"
#include "../mfshell.h"
#include "../../mfapi/file.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_links(mfshell *mfshell, int argc, char **argv)

View File

@@ -19,12 +19,12 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/apicalls.h"
#include "../mfshell.h"
#include "../../mfapi/folder.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_list(mfshell *mfshell, int argc, char **argv)

View File

@@ -18,13 +18,13 @@
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_lpwd(mfshell *mfshell, int argc, char **argv)

View File

@@ -19,12 +19,12 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../mfshell.h"
#include "../commands.h"
#include "../../mfapi/apicalls.h"
#include "../mfshell.h"
#include "../../mfapi/folder.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_mkdir(mfshell *mfshell, int argc, char **argv)

View File

@@ -19,12 +19,12 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../commands.h"
#include "../mfshell.h"
#include "../../utils/strings.h"
#include "../mfshell.h"
#include "../../mfapi/folder.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_pwd(mfshell *mfshell, int argc, char **argv)

View File

@@ -19,12 +19,11 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../commands.h"
#include "../mfshell.h"
#include "../../mfapi/apicalls.h"
#include "../mfshell.h"
#include "../../mfapi/mfconn.h"
#include "../commands.h" // IWYU pragma: keep
int
mfshell_cmd_whoami(mfshell *mfshell, int argc, char **argv)