Skip to content

Commit

Permalink
Always mark config.h with IWYU pragma: keep
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBE committed May 24, 2023
1 parent dc883b2 commit b3cf54e
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CRT.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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>

Expand Down
2 changes: 1 addition & 1 deletion ProvideCurses.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in the source distribution for its full text.
*/


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

// IWYU pragma: begin_exports

Expand Down
2 changes: 1 addition & 1 deletion RichString.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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 "ProvideCurses.h"

Expand Down
4 changes: 2 additions & 2 deletions generic/fdstat_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/

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

#include "generic/fdstat_sysctl.h"

#include <math.h>
Expand All @@ -14,8 +16,6 @@ in the source distribution for its full text.
#include <sys/types.h> // Shitty FreeBSD upstream headers
#include <sys/sysctl.h>

#include "config.h"


static void Generic_getFileDescriptors_sysctl_internal(
const char* sysctlname_maxfiles,
Expand Down
2 changes: 1 addition & 1 deletion linux/LibSensors.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "linux/LibSensors.h"

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

#ifdef HAVE_SENSORS_SENSORS_H

Expand Down
2 changes: 1 addition & 1 deletion linux/LinuxMachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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>
Expand Down
2 changes: 1 addition & 1 deletion linux/LinuxProcessList.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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>
Expand Down
2 changes: 1 addition & 1 deletion linux/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ in the source distribution for its full text.
*/

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

#include "linux/Platform.h"

Expand Down
2 changes: 1 addition & 1 deletion linux/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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 <limits.h>
#include <stdbool.h>
Expand Down

0 comments on commit b3cf54e

Please sign in to comment.