diff top/maint.mk @ 12035:2898ee238452

syntax-check: detect unnecessary inclusion of canonicalize.h * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
author Jim Meyering <meyering@redhat.com>
date Sat, 19 Sep 2009 19:51:05 +0200
parents 25d12bf7e5bf
children b7b81ca175f4
line wrap: on
line diff
--- a/top/maint.mk	Sat Sep 19 11:21:19 2009 -0600
+++ b/top/maint.mk	Sat Sep 19 19:51:05 2009 +0200
@@ -288,6 +288,11 @@
 	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 *\()' \