From 10eea2ab1bae2a8ec159d81c0446fd8061b33e2b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:58:07 +0200 Subject: Adding upstream version 3.3.0. Signed-off-by: Daniel Baumann --- iwyu/htop.imp | 33 +++++++++++++++++++++++++++++++++ iwyu/run_iwyu.sh | 15 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 iwyu/htop.imp create mode 100755 iwyu/run_iwyu.sh (limited to 'iwyu') diff --git a/iwyu/htop.imp b/iwyu/htop.imp new file mode 100644 index 0000000..e2fc72b --- /dev/null +++ b/iwyu/htop.imp @@ -0,0 +1,33 @@ +[ + { include: ["", "private", "\"ProvideCurses.h\"", "public"] }, + { include: ["", "private", "\"ProvideCurses.h\"", "public"] }, + { include: ["", "private", "\"ProvideCurses.h\"", "public"] }, + { include: ["", "private", "\"ProvideCurses.h\"", "public"] }, + + { include: ["", "private", "\"ProvideTerm.h\"", "public"] }, + { include: ["", "private", "\"ProvideTerm.h\"", "public"] }, + { include: ["", "private", "\"ProvideTerm.h\"", "public"] }, + + { include: ["", "private", "", "public"] }, + { include: ["\"ibunwind-x86_64.h\"", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, + + { include: ["", "private", "", "public"] }, +] diff --git a/iwyu/run_iwyu.sh b/iwyu/run_iwyu.sh new file mode 100755 index 0000000..8456240 --- /dev/null +++ b/iwyu/run_iwyu.sh @@ -0,0 +1,15 @@ +#!/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 + +./configure CC=clang CXX=clang++ --enable-silent-rules +make clean +make -k -s CC="$IWYU" CFLAGS="-Xiwyu --no_comments -Xiwyu --no_fwd_decl -Xiwyu --mapping_file='$SCRIPTDIR/htop.imp' $PKG_NL3" -- cgit v1.2.3