mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Provide basic configuration for IWYU
This commit is contained in:
parent
8c93f31809
commit
29346d0561
10
iwyu/htop.imp
Normal file
10
iwyu/htop.imp
Normal file
@ -0,0 +1,10 @@
|
||||
[
|
||||
{ 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"] },
|
||||
]
|
12
iwyu/run_iwyu.sh
Executable file
12
iwyu/run_iwyu.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
SCRIPT=$(readlink -f "$0")
|
||||
SCRIPTDIR=$(dirname "$SCRIPT")
|
||||
SOURCEDIR="$SCRIPTDIR/.."
|
||||
|
||||
PKG_NL3=$(pkg-config --cflags libnl-3.0)
|
||||
|
||||
cd "$SOURCEDIR"
|
||||
|
||||
make clean
|
||||
make -k CC="iwyu" CFLAGS="-Xiwyu --no_comments -Xiwyu --no_fwd_decl -Xiwyu --mapping_file='$SCRIPTDIR/htop.imp' $PKG_NL3"
|
Loading…
Reference in New Issue
Block a user