[gjs/iwyu: 32/34] build: Use globs in IWYU --check_also argument



commit abc7683e4a75c51ac67f00783d5ff34e8e00e938
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat May 16 11:32:24 2020 -0700

    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!

 tools/run_iwyu.sh | 16 ++++++++--------
 1 file 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]