syntax-check: Clean up check for g_auto*

Remove the old libvirt variants that are no longer in use and include
g_autostringlist.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-03-31 10:18:54 +02:00
parent 7676062272
commit 65f702020e

View File

@ -1106,7 +1106,7 @@ sc_prohibit_backslash_alignment:
# Rule to ensure that variables declared using a cleanup macro are # Rule to ensure that variables declared using a cleanup macro are
# always initialized. # always initialized.
sc_require_attribute_cleanup_initialization: sc_require_attribute_cleanup_initialization:
@prohibit='((g_auto(ptr|free)?)|(VIR_AUTO((FREE|PTR|UNREF|CLEAN)\(.+\)|CLOSE|STRINGLIST))) *[^=]+;' \ @prohibit='((g_auto(ptr|free|slist)?)|VIR_AUTOCLOSE)) *[^=]+;' \
in_vc_files='\.[chx]$$' \ in_vc_files='\.[chx]$$' \
halt='variable declared with a cleanup macro must be initialized' \ halt='variable declared with a cleanup macro must be initialized' \
$(_sc_search_regexp) $(_sc_search_regexp)