[libvirt] [PATCHv2 09/25] cfg.mk: check ctype_macros only on *.[c|h] files

Radostin Stoyanov rstoyanov1 at gmail.com
Tue Mar 20 06:48:52 UTC 2018


The functions like isalnum(), isalpha(), isdigit(), etc. are also
available in Python, however `make syntax-check` do not intend to
prohibit them.

Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
 cfg.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cfg.mk b/cfg.mk
index bc8088d7c..4aa26d434 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -496,6 +496,7 @@ ctype_re = isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islower\
 
 sc_avoid_ctype_macros:
 	@prohibit='\b($(ctype_re)) *\(' \
+	in_vc_files='\.[ch]$$' \
 	halt='use c-ctype.h instead of ctype macros' \
 	  $(_sc_search_regexp)
 
-- 
2.14.3




More information about the libvir-list mailing list