From: Jim Meyering <meyering@redhat.com> Date: Sat, 19 Sep 2009 17:51:05 +0000 (+0200) Subject: syntax-check: detect unnecessary inclusion of canonicalize.h X-Git-Tag: v0.1~5452 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=27fc6b8b3c176038ff7216a6af6dfba82de17537;p=gnulib.git syntax-check: detect unnecessary inclusion of canonicalize.h * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule. --- diff --git a/ChangeLog b/ChangeLog index 68321e9752..fab07337bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-19 Jim Meyering <meyering@redhat.com> + + syntax-check: detect unnecessary inclusion of canonicalize.h + * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule. + 2009-09-19 Eric Blake <ebb9@byu.net> canonicalize-lgpl: adjust clients to use correct header diff --git a/top/maint.mk b/top/maint.mk index c0c3f271fe..fe6b3ffce6 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -288,6 +288,11 @@ sc_prohibit_argmatch_without_use: re='(\<(ARRAY_CARDINALITY|X?ARGMATCH(|_TO_ARGUMENT|_VERIFY))\>|\<argmatch(_exit_fn|_(in)?valid) *\()' \ $(_header_without_use) +sc_prohibit_canonicalize_without_use: + @h='"canonicalize.h"' \ + re='CAN_(EXISTING|ALL_BUT_LAST|MISSING)|canonicalize_(mode_t|filename_mode)' \ + $(_header_without_use) + sc_prohibit_root_dev_ino_without_use: @h='"root-dev-ino.h"' \ re='(\<ROOT_DEV_INO_(CHECK|WARN)\>|\<get_root_dev_ino *\()' \