[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3] RFC: Automatically check xen's public headers for C++ pitfalls.



>>> On 26.02.15 at 17:24, <tim@xxxxxxx> wrote:
> +PUBLIC_ANSI_HEADERS := $(filter-out public/%ctl.h public/xsm/% 
> public/%hvm/save.h, $(PUBLIC_HEADERS))
> +
> +headers.chk: $(PUBLIC_ANSI_HEADERS) Makefile
> +     for i in $(filter %.h,$^); do \
> +         $(CC) -x c -ansi -Wall -Werror -include stdint.h \
> +               -S -o /dev/null $$i || exit 1; \
> +         echo $$i; \
> +     done >$@.new
> +     mv $@.new $@
> +
> +headers++.chk: $(PUBLIC_HEADERS) Makefile
> +     if $(CXX) -v >/dev/null 2>&1; then \
> +         for i in $(filter %.h,$^); do \
> +             $(CXX) -x c++ -std=gnu++98 -Wall -Werror \
> +                    -D__XEN_TOOLS__ -Dprivate=private_is_a_keyword_in_cpp \

With -D__XEN_TOOLS__ added, did you check that domctl.h and
sysctl.h still actually need to be excluded from this test?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.