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

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

 



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@xxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux