mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
syntax-check: Prohibit 'vir' prefix for enum implementations in virsh
Avoid potential conflict of enum helpers declared in virsh. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b12a0e62f0
commit
af013aa14c
@ -1717,6 +1717,13 @@ sc_group-qemu-caps:
|
||||
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/group-qemu-caps.py \
|
||||
--check --prefix $(top_srcdir)/
|
||||
|
||||
sc_prohibit_enum_impl_with_vir_prefix_in_virsh:
|
||||
@prohibit='VIR_ENUM_(IMPL|DECL)\(vir[^s]' \
|
||||
in_vc_files='tools/virsh.*\.[ch]$$' \
|
||||
halt='avoid "vir" prefix for enums in virsh' \
|
||||
$(_sc_search_regexp)
|
||||
|
||||
|
||||
# List all syntax-check exemptions:
|
||||
exclude_file_name_regexp--sc_avoid_strcase = ^tools/vsh\.h$$
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user