run_iwyu.sh 375 B

123456789101112131415
  1. #!/bin/sh
  2. SCRIPT=$(readlink -f "$0")
  3. SCRIPTDIR=$(dirname "$SCRIPT")
  4. SOURCEDIR="$SCRIPTDIR/.."
  5. PKG_NL3=$(pkg-config --cflags libnl-3.0)
  6. IWYU=${IWYU:-iwyu}
  7. cd "$SOURCEDIR" || exit
  8. ./configure CC=clang CXX=clang++ --enable-silent-rules
  9. make clean
  10. make -k -s CC="$IWYU" CFLAGS="-Xiwyu --no_comments -Xiwyu --no_fwd_decl -Xiwyu --mapping_file='$SCRIPTDIR/htop.imp' $PKG_NL3"