Skip to content

Commit

Permalink
IWYU update
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones authored and BenBE committed Dec 6, 2020
1 parent 22f8f80 commit 7ba25aa
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 13 deletions.
1 change: 0 additions & 1 deletion CRT.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ in the source distribution for its full text.

#include <errno.h>
#include <langinfo.h>
#include <locale.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion ColorsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ in the source distribution for its full text.
#include "ProvideCurses.h"
#include "RichString.h"
#include "Vector.h"
#include "XUtils.h"


// TO ADD A NEW SCHEME:
Expand Down
2 changes: 1 addition & 1 deletion Compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ in the source distribution for its full text.
#include <fcntl.h>
#include <stddef.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h> // IWYU pragma: keep


int Compat_faccessat(int dirfd,
Expand Down
1 change: 0 additions & 1 deletion DisplayOptionsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ in the source distribution for its full text.
#include "Object.h"
#include "OptionItem.h"
#include "ProvideCurses.h"
#include "XUtils.h"


static const char* const DisplayOptionsFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL};
Expand Down
1 change: 1 addition & 0 deletions Hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ in the source distribution for its full text.
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "Macros.h"
#include "XUtils.h"
Expand Down
1 change: 1 addition & 0 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ in the source distribution for its full text.
#include "Object.h"
#include "ProvideCurses.h"
#include "RichString.h"
#include "Settings.h"
#include "XUtils.h"


Expand Down
2 changes: 2 additions & 0 deletions OptionItem.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ in the source distribution for its full text.
#include <stdlib.h>

#include "CRT.h"
#include "Macros.h"
#include "RichString.h"
#include "XUtils.h"


static void OptionItem_delete(Object* cast) {
Expand Down
1 change: 0 additions & 1 deletion Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ in the source distribution for its full text.

#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>

#include "Object.h"
Expand Down
1 change: 1 addition & 0 deletions ProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ in the source distribution for its full text.

#include "CRT.h"
#include "Hashtable.h"
#include "Macros.h"
#include "Vector.h"
#include "XUtils.h"

Expand Down
1 change: 1 addition & 0 deletions Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ in the source distribution for its full text.
#include "config.h" // IWYU pragma: keep

#include <stdbool.h>
#include <stdint.h>

#include "Process.h"

Expand Down
1 change: 1 addition & 0 deletions XUtils.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ in the source distribution for its full text.

#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions XUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ in the source distribution for its full text.
#include <stdio.h>
#include <stdlib.h> // IWYU pragma: keep
#include <string.h> // IWYU pragma: keep
#include <sys/types.h>

#include "Compat.h"
#include "Macros.h"
Expand Down
1 change: 0 additions & 1 deletion linux/LibSensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <dlfcn.h>
#include <errno.h>
#include <limits.h>
#include <sensors/sensors.h>

#include "XUtils.h"
Expand Down
1 change: 1 addition & 0 deletions linux/LinuxProcess.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ in the source distribution for its full text.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syscall.h>
#include <unistd.h>

Expand Down
3 changes: 1 addition & 2 deletions linux/LinuxProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/

#include "config.h"
#include "config.h" // IWYU pragma: keep

#include <stdbool.h>
#include <sys/types.h>

#include "IOPriority.h"
#include "Object.h"
Expand Down
5 changes: 2 additions & 3 deletions linux/LinuxProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ in the source distribution for its full text.
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/utsname.h>

#ifdef HAVE_DELAYACCT
#include <linux/netlink.h>
Expand Down
1 change: 0 additions & 1 deletion linux/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ in the source distribution for its full text.
#include <assert.h>
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
Expand Down
1 change: 0 additions & 1 deletion linux/SELinuxMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ in the source distribution for its full text.

#include "CRT.h"

#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
Expand Down

0 comments on commit 7ba25aa

Please sign in to comment.