From 7ba25aa3c47859dd57ab88fc8fcf4006edb1ef6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sun, 6 Dec 2020 15:22:41 +0100 Subject: [PATCH] IWYU update --- CRT.c | 1 - ColorsPanel.c | 1 - Compat.h | 2 +- DisplayOptionsPanel.c | 1 - Hashtable.c | 1 + Meter.c | 1 + OptionItem.c | 2 ++ Process.h | 1 - ProcessList.c | 1 + Settings.h | 1 + XUtils.c | 1 + XUtils.h | 1 + linux/LibSensors.c | 1 - linux/LinuxProcess.c | 1 + linux/LinuxProcess.h | 3 +-- linux/LinuxProcessList.c | 5 ++--- linux/Platform.c | 1 - linux/SELinuxMeter.c | 1 - 18 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CRT.c b/CRT.c index 192a6aca..68f64054 100644 --- a/CRT.c +++ b/CRT.c @@ -11,7 +11,6 @@ in the source distribution for its full text. #include #include -#include #include #include #include diff --git a/ColorsPanel.c b/ColorsPanel.c index 69927092..2fb1c92f 100644 --- a/ColorsPanel.c +++ b/ColorsPanel.c @@ -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: diff --git a/Compat.h b/Compat.h index 3b567736..94c2ee2f 100644 --- a/Compat.h +++ b/Compat.h @@ -12,7 +12,7 @@ in the source distribution for its full text. #include #include #include -#include +#include // IWYU pragma: keep int Compat_faccessat(int dirfd, diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c index e0d4cfd8..ed373190 100644 --- a/DisplayOptionsPanel.c +++ b/DisplayOptionsPanel.c @@ -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}; diff --git a/Hashtable.c b/Hashtable.c index cd48fc46..1beb2bb2 100644 --- a/Hashtable.c +++ b/Hashtable.c @@ -13,6 +13,7 @@ in the source distribution for its full text. #include #include #include +#include #include "Macros.h" #include "XUtils.h" diff --git a/Meter.c b/Meter.c index 06723745..71457d4d 100644 --- a/Meter.c +++ b/Meter.c @@ -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" diff --git a/OptionItem.c b/OptionItem.c index 625a994f..00001fce 100644 --- a/OptionItem.c +++ b/OptionItem.c @@ -12,7 +12,9 @@ in the source distribution for its full text. #include #include "CRT.h" +#include "Macros.h" #include "RichString.h" +#include "XUtils.h" static void OptionItem_delete(Object* cast) { diff --git a/Process.h b/Process.h index 67f7bcc5..7a68c69f 100644 --- a/Process.h +++ b/Process.h @@ -10,7 +10,6 @@ in the source distribution for its full text. #include #include -#include #include #include "Object.h" diff --git a/ProcessList.c b/ProcessList.c index fb4ba481..2d273398 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -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" diff --git a/Settings.h b/Settings.h index dab531f7..752970a1 100644 --- a/Settings.h +++ b/Settings.h @@ -10,6 +10,7 @@ in the source distribution for its full text. #include "config.h" // IWYU pragma: keep #include +#include #include "Process.h" diff --git a/XUtils.c b/XUtils.c index 23ec39e7..743d98bf 100644 --- a/XUtils.c +++ b/XUtils.c @@ -11,6 +11,7 @@ in the source distribution for its full text. #include #include +#include #include #include #include diff --git a/XUtils.h b/XUtils.h index d004785f..e0aeebe2 100644 --- a/XUtils.h +++ b/XUtils.h @@ -13,6 +13,7 @@ in the source distribution for its full text. #include #include // IWYU pragma: keep #include // IWYU pragma: keep +#include #include "Compat.h" #include "Macros.h" diff --git a/linux/LibSensors.c b/linux/LibSensors.c index 1f3bd8de..a30e21b6 100644 --- a/linux/LibSensors.c +++ b/linux/LibSensors.c @@ -4,7 +4,6 @@ #include #include -#include #include #include "XUtils.h" diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 5cff5703..f51cf1e3 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -11,6 +11,7 @@ in the source distribution for its full text. #include #include #include +#include #include #include diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index 41127113..ad396fb2 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -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 -#include #include "IOPriority.h" #include "Object.h" diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 7f9efee1..b9ba247f 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -13,18 +13,17 @@ in the source distribution for its full text. #include #include #include -#include +#include #include #include +#include #include #include #include -#include #include #include #include #include -#include #ifdef HAVE_DELAYACCT #include diff --git a/linux/Platform.c b/linux/Platform.c index dc917459..590fc7aa 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -12,7 +12,6 @@ in the source distribution for its full text. #include #include #include -#include #include #include #include diff --git a/linux/SELinuxMeter.c b/linux/SELinuxMeter.c index 07094a4f..a8b07bd3 100644 --- a/linux/SELinuxMeter.c +++ b/linux/SELinuxMeter.c @@ -9,7 +9,6 @@ in the source distribution for its full text. #include "CRT.h" -#include #include #include #include