diff options
author | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
commit | 65357c8c46154de4e4eca14075bfe5523bb5fc14 (patch) | |
tree | 8f430ee5a0d5de377c4e7c94e47842a27c70d7e8 /iwyu | |
parent | f80394a20254938142011855f2954b3f63fe5909 (diff) | |
download | debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.gz debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.bz2 debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.zip |
New upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'iwyu')
-rw-r--r-- | iwyu/htop.imp | 18 | ||||
-rwxr-xr-x | iwyu/run_iwyu.sh | 14 |
2 files changed, 32 insertions, 0 deletions
diff --git a/iwyu/htop.imp b/iwyu/htop.imp new file mode 100644 index 0000000..7fe432c --- /dev/null +++ b/iwyu/htop.imp @@ -0,0 +1,18 @@ +[ + { include: ["<curses.h>", "private", "\"ProvideCurses.h\"", "public"] }, + { include: ["<ncurses.h>", "private", "\"ProvideCurses.h\"", "public"] }, + { include: ["<ncurses/curses.h>", "private", "\"ProvideCurses.h\"", "public"] }, + { include: ["<ncurses/ncurses.h>", "private", "\"ProvideCurses.h\"", "public"] }, + + { include: ["<bits/types/struct_tm.h>", "private", "<time.h>", "public"] }, + + { include: ["<bits/getopt_core.h>", "private", "<unistd.h>", "public"] }, + + { include: ["<sys/signal.h>", "private", "<signal.h>", "public"] }, + + { include: ["<sys/_stdarg.h>", "private", "<stdarg.h>", "public"] }, + + { include: ["<sys/limits.h>", "private", "<limits.h>", "public"] }, + + { include: ["<x86/_inttypes.h>", "private", "<inttypes.h>", "public"] }, +] diff --git a/iwyu/run_iwyu.sh b/iwyu/run_iwyu.sh new file mode 100755 index 0000000..6139ebe --- /dev/null +++ b/iwyu/run_iwyu.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +SCRIPT=$(readlink -f "$0") +SCRIPTDIR=$(dirname "$SCRIPT") +SOURCEDIR="$SCRIPTDIR/.." + +PKG_NL3=$(pkg-config --cflags libnl-3.0) + +IWYU=${IWYU:-iwyu} + +cd "$SOURCEDIR" || exit + +make clean +make -k -s CC="$IWYU" CFLAGS="-Xiwyu --no_comments -Xiwyu --no_fwd_decl -Xiwyu --mapping_file='$SCRIPTDIR/htop.imp' $PKG_NL3" |