syntax-check: detect unnecessary inclusion of canonicalize.h
authorJim Meyering <meyering@redhat.com>
Sat, 19 Sep 2009 17:51:05 +0000 (19:51 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 19 Sep 2009 17:51:44 +0000 (19:51 +0200)
* top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.

ChangeLog
top/maint.mk

index 68321e9..fab0733 100644 (file)
--- 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
index c0c3f27..fe6b3ff 100644 (file)
@@ -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 *\()' \