mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
syntax-check: Don't include public headers in internal source
Directories python/tools/examples should include them in <> form, though this patch allows "" form in these directories by excluding them, a later patch will do the cleanup.
This commit is contained in:
parent
83d801a7e6
commit
1d69c6334b
10
cfg.mk
10
cfg.mk
@ -746,6 +746,13 @@ sc_prohibit_duplicate_header:
|
|||||||
{ echo "$(ME)": avoid duplicate headers >&2; exit 1; } \
|
{ echo "$(ME)": avoid duplicate headers >&2; exit 1; } \
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
# Don't include "libvirt/*.h" in "" form.
|
||||||
|
sc_prohibit_include_public_headers:
|
||||||
|
@prohibit='# *include *"libvirt/.*\.h"' \
|
||||||
|
in_vc_files='\.[chx]$$' \
|
||||||
|
halt='Do not include libvirt/*.h in internal source' \
|
||||||
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
# We don't use this feature of maint.mk.
|
# We don't use this feature of maint.mk.
|
||||||
prev_version_file = /dev/null
|
prev_version_file = /dev/null
|
||||||
|
|
||||||
@ -899,3 +906,6 @@ exclude_file_name_regexp--sc_correct_id_types = \
|
|||||||
(^src/locking/lock_protocol.x$$)
|
(^src/locking/lock_protocol.x$$)
|
||||||
|
|
||||||
exclude_file_name_regexp--sc_m4_quote_check = m4/virt-lib.m4
|
exclude_file_name_regexp--sc_m4_quote_check = m4/virt-lib.m4
|
||||||
|
|
||||||
|
exclude_file_name_regexp--sc_prohibit_include_public_headers = \
|
||||||
|
^(src/internal\.h$$|python/|tools/|examples/|include/libvirt/libvirt-(qemu|lxc)\.h$$)
|
||||||
|
@ -38,8 +38,6 @@
|
|||||||
#include "virutil.h"
|
#include "virutil.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
#include "viruuid.h"
|
#include "viruuid.h"
|
||||||
#include "libvirt/libvirt-qemu.h"
|
|
||||||
#include "libvirt/libvirt-lxc.h"
|
|
||||||
#include "vircommand.h"
|
#include "vircommand.h"
|
||||||
#include "intprops.h"
|
#include "intprops.h"
|
||||||
#include "virnetserverservice.h"
|
#include "virnetserverservice.h"
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#include "virerror.h"
|
#include "virerror.h"
|
||||||
#include "virlog.h"
|
#include "virlog.h"
|
||||||
#include "datatypes.h"
|
#include "datatypes.h"
|
||||||
#include "libvirt/libvirt-qemu.h"
|
|
||||||
|
|
||||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user