]> granicus.if.org Git - neomutt/commitdiff
iwyu: pragma keep some #includes
authorRichard Russon <rich@flatcap.org>
Sat, 21 Sep 2019 15:26:21 +0000 (16:26 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 21 Sep 2019 16:55:08 +0000 (17:55 +0100)
After pre-processing, some macros disappear, which means that iwyu
thinks that some headers aren't needed.

copy.c
globals.h
mbox/mbox.c
mutt/mbyte.h
mutt/md5.c
pager.c
sendlib.c
sort.h
terminal.c

diff --git a/copy.c b/copy.c
index 609082edf8246b9b2776e223008e64f65e4e8c12..0a9d16f38306d6fc5882407a6d1d11db6548bdce 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -29,7 +29,7 @@
 
 #include "config.h"
 #include <ctype.h>
-#include <inttypes.h>
+#include <inttypes.h> // IWYU pragma: keep
 #include <stdbool.h>
 #include <string.h>
 #include "mutt/mutt.h"
index 2ce041679bc964f5c4222255494bc17f78c0a5d5..fbfd896daf0831e380497d8bf843655f6423aed4 100644 (file)
--- a/globals.h
+++ b/globals.h
@@ -24,7 +24,7 @@
 #define MUTT_GLOBALS_H
 
 #include "config.h"
-#include <signal.h>
+#include <signal.h> // IWYU pragma: keep
 #include <stdbool.h>
 #include "mutt/mutt.h"
 #include "keymap.h"
index cd53a9af4b4a5e9cff6a938662ddd8b3ce6d0d35..f2246803c191f28c4d8a4a9b1c8acb2e3abcc5b4 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "config.h"
 #include <fcntl.h>
-#include <inttypes.h>
+#include <inttypes.h> // IWYU pragma: keep
 #include <limits.h>
 #include <stdbool.h>
 #include <stdio.h>
index eb628aaf9de77c3702abbddc4a59f00c85dc5569..c1cbcb4bc63fd9c2333613ff11df3bbff77ab442 100644 (file)
@@ -27,7 +27,7 @@
 #include <ctype.h>
 #include <stdbool.h>
 #include <wchar.h>
-#include <wctype.h>
+#include <wctype.h> // IWYU pragma: keep
 
 extern bool OptLocales;
 
index 2fa2829356676db648970daf7608d3ae0e3c831e..5b661abbda01e28526bdea197dbf91815e774856 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include "config.h"
-#include <stddef.h>
+#include <stddef.h> // IWYU pragma: keep
 #include <stdbool.h>
 #include <stdio.h>
 #include <string.h>
diff --git a/pager.c b/pager.c
index 0b6b492cd3d381e10f81356caa7ed1a37f4c829a..cae0252e84502cc053c1d5100e5c4cdc639a9a64 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -29,7 +29,7 @@
 #include "config.h"
 #include <ctype.h>
 #include <errno.h>
-#include <inttypes.h>
+#include <inttypes.h> // IWYU pragma: keep
 #include <limits.h>
 #include <regex.h>
 #include <stdbool.h>
index 1f2ef5f20ff39aa189eaa15586fd5e78375c15a0..95b748a99d30ea1a0a7937608b1532c42f857fc3 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -31,7 +31,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <iconv.h>
-#include <inttypes.h>
+#include <inttypes.h> // IWYU pragma: keep
 #include <limits.h>
 #include <signal.h>
 #include <stdbool.h>
diff --git a/sort.h b/sort.h
index 6b6cf894ca7cafb100ef9f476547ece9ae139d06..ad01df1ac442671a905f0ea9c00ac8d2ab492ac6 100644 (file)
--- a/sort.h
+++ b/sort.h
@@ -26,7 +26,7 @@
 
 #include <stdbool.h>
 #include "config/lib.h"
-#include "options.h"
+#include "options.h" // IWYU pragma: keep
 #include "where.h"
 
 struct Address;
index 78bd2e50414b0006d7c4addc730d45c9863d401e..40034c116afff0197a9b54613f41e38dd094e1a3 100644 (file)
@@ -32,9 +32,9 @@
 #include "mutt/mutt.h"
 #include "mutt_curses.h"
 #ifdef HAVE_NCURSESW_NCURSES_H
-#include <ncursesw/term.h>
+#include <ncursesw/term.h> // IWYU pragma: keep
 #elif defined(HAVE_NCURSES_NCURSES_H)
-#include <ncurses/term.h>
+#include <ncurses/term.h> // IWYU pragma: keep
 #elif !defined(USE_SLANG_CURSES)
 #include <term.h>
 #endif