Provide basic configuration for IWYU

This commit is contained in:
Benny Baumann
2020-09-19 14:20:03 +02:00
parent 8c93f31809
commit 29346d0561
2 changed files with 22 additions and 0 deletions

12
iwyu/run_iwyu.sh Executable file
View 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"