mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
syntax-check: Fix regex for sc_require_attribute_cleanup_initialization
When I was cleaning up the regex after we removed most of our custom
autofree helpers I've forgot to delete one closing brace, thus the regex
was not matching anything.
Fixes: 65f702020e
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
adc9c08b03
commit
ebd796b811
@ -910,7 +910,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|slist)?)|VIR_AUTOCLOSE)) *[^=]+;' \
|
@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)
|
||||||
|
Loading…
Reference in New Issue
Block a user