From: Erik Skultety Date: Thu, 28 Jan 2016 15:46:32 +0000 (+0100) Subject: cfg.mk: Adjust sc_prohibit_int_ijk to support 'exempt from syntax-check' X-Git-Tag: v1.3.2-rc1~259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe6d8bfa81c8243516e38e81c31645049cb54e2;p=thirdparty%2Flibvirt.git cfg.mk: Adjust sc_prohibit_int_ijk to support 'exempt from syntax-check' There might be cases, like with typed params, where triggering this check isn't desirable. But including the whole module in the exception regex is not always to right way of doing things. By adding an option to manually disable this check on a specific occurrence, the module itself will still be checked against the rule. --- diff --git a/cfg.mk b/cfg.mk index b009b284f1..71b0866d52 100644 --- a/cfg.mk +++ b/cfg.mk @@ -572,6 +572,7 @@ sc_prohibit_int_index: sc_prohibit_int_ijk: @prohibit='\<(int|unsigned) ([^(=]* )*(i|j|k)\>(\s|,|;)' \ + exclude='exempt from syntax-check' \ halt='use size_t, not int/unsigned int for loop vars i, j, k' \ $(_sc_search_regexp)