From e9476e103527304181c616e181710bae07b53d25 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Tue, 20 Mar 2018 06:48:52 +0000 Subject: [PATCH] cfg.mk: check ctype_macros only on *.[c|h] files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The functions like isalnum(), isalpha(), isdigit(), etc. are also available in Python, however `make syntax-check` do not intend to prohibit them. Reviewed-by: Daniel P. Berrangé Signed-off-by: Radostin Stoyanov --- cfg.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg.mk b/cfg.mk index bc8088d7c0..4aa26d434a 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) -- GitLab