mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
syntax-check: forbid ATTRIBUTE macros with a GLib replacement
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
bda2cced34
commit
a4f979c06e
@ -628,6 +628,12 @@ sc_avoid_g_gnuc_unused_in_header:
|
|||||||
halt='use G_GNUC_UNUSED in .c rather than .h files' \
|
halt='use G_GNUC_UNUSED in .c rather than .h files' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
|
sc_prohibit_attribute_macros:
|
||||||
|
@prohibit='ATTRIBUTE_(UNUSED|NORETURN|SENTINEL|RETURN_CHECK)' \
|
||||||
|
in_vc_files='\.[ch]$$' \
|
||||||
|
halt='use GLib macros: G_GNUC_{UNUSED,NORETURN,NULL_TERMINATED,WARN_UNUSED_RESULT}' \
|
||||||
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
sc_prohibit_int_index:
|
sc_prohibit_int_index:
|
||||||
@prohibit='\<(int|unsigned)\s*\*?index\>(\s|,|;)' \
|
@prohibit='\<(int|unsigned)\s*\*?index\>(\s|,|;)' \
|
||||||
halt='use different name than 'index' for declaration' \
|
halt='use different name than 'index' for declaration' \
|
||||||
|
Loading…
Reference in New Issue
Block a user