summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2020-05-16 11:32:24 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2020-05-20 22:41:26 -0700
commitabc7683e4a75c51ac67f00783d5ff34e8e00e938 (patch)
treeff50dd6c36cdd0968dacb2e98d17317ab1d2d1ac /tools
parent55e1342e737e6878b8822173ad4b42514ee3d1ec (diff)
downloadgjs-abc7683e4a75c51ac67f00783d5ff34e8e00e938.tar.gz
build: Use globs in IWYU --check_also argument
For some reason, an absolute path given to this argument means the files don't get checked. Use a glob instead. Bizarre!
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_iwyu.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/run_iwyu.sh b/tools/run_iwyu.sh
index f4bca812..5773289f 100755
--- a/tools/run_iwyu.sh
+++ b/tools/run_iwyu.sh
@@ -26,19 +26,19 @@ do
$IWYU $FILE -- $PRIVATE_MAPPING | $POSTPROCESS
done
$IWYU $SRCDIR/gjs/context.cpp -- $PRIVATE_MAPPING \
- -Xiwyu --check_also=$SRCDIR/gjs/context-private.h | $POSTPROCESS
+ -Xiwyu --check_also=*/gjs/context-private.h | $POSTPROCESS
$IWYU $SRCDIR/gjs/jsapi-dynamic-class.cpp -- $PRIVATE_MAPPING \
- -Xiwyu --check_also=$SRCDIR/gjs/jsapi-class.h | $POSTPROCESS
+ -Xiwyu --check_also=*/gjs/jsapi-class.h | $POSTPROCESS
$IWYU $SRCDIR/gjs/jsapi-util.cpp -- $PRIVATE_MAPPING \
- -Xiwyu --check_also=$SRCDIR/gjs/jsapi-util-args.h \
- -Xiwyu --check_also=$SRCDIR/gjs/jsapi-util-root.h | $POSTPROCESS
+ -Xiwyu --check_also=*/gjs/jsapi-util-args.h \
+ -Xiwyu --check_also=*/gjs/jsapi-util-root.h | $POSTPROCESS
$IWYU $SRCDIR/gjs/mem.cpp -- $PRIVATE_MAPPING \
- -Xiwyu --check_also=$SRCDIR/gjs/mem-private.h | $POSTPROCESS
+ -Xiwyu --check_also=*/gjs/mem-private.h | $POSTPROCESS
$IWYU $SRCDIR/gjs/profiler.cpp -- $PRIVATE_MAPPING \
- -Xiwyu --check_also=$SRCDIR/gjs/profiler-private.h | $POSTPROCESS
+ -Xiwyu --check_also=*/gjs/profiler-private.h | $POSTPROCESS
$IWYU $SRCDIR/modules/cairo.cpp -- $PRIVATE_MAPPING \
- -Xiwyu --check_also=$SRCDIR/modules/cairo-module.h \
- -Xiwyu --check_also=$SRCDIR/modules/cairo-private.h | $POSTPROCESS
+ -Xiwyu --check_also=*/modules/cairo-module.h \
+ -Xiwyu --check_also=*/modules/cairo-private.h | $POSTPROCESS
for FILE in $SRCDIR/gjs/console.cpp $SRCDIR/installed-tests/minijasmine.cpp
do