syntax-check: add syntactic rule to prohibit gs_unref_*

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2015-05-12 09:39:13 +02:00
parent 4282ef65bf
commit f38ec6dfdf

View File

@ -1032,6 +1032,11 @@ sc_const_long_option:
halt='add "const" to the above declarations' \
$(_sc_search_regexp)
sc_prohibit_gs_unref:
@prohibit='\bgs_unref_(keyfile|variant*|ptrarray|hashtable|bytes|object)\b' \
halt="do not use gs_unref_*; use g_autoptr instead" \
$(_sc_search_regexp)
NEWS_hash = \
$$($(SED) -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
$(srcdir)/NEWS \