[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not ""
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "" |
Date: |
Tue, 20 Mar 2018 15:53:51 +0200 |
On Tue, Mar 20, 2018 at 02:46:46PM +0100, Thomas Huth wrote:
> On 20.03.2018 14:32, Gerd Hoffmann wrote:
> > Hi,
> >
> >>> So for these, we should use "". None of these are generated files though.
> >>
> >> That leads to crazy inconsistent message for developers where 50% of QEMU
> >> header files must use <> and the other 50% of header files must use "".
> >
> > The rules are pretty simple though:
> >
> > (1) Headers which are generated use <>.
> > (2) Headers which are in include/ use <>.
> > (3) Headers sitting in the same directory as the source files use "".
>
> Ugh, no. Please don't. The normal way of including header files in QEMU
Stress on "in QEMU".
> is to use "" - also for headers that are not in the same directory. For
> example just do a
>
> grep -r '^#include.*hw/' hw/
>
> from the top directory and you'll see what I mean. Changing that rule is
> crazy.
> So please, let's just fix the configure script to detect some
> more stale files in the source tree, and we're done.
>
> Thomas
The rule probably served a useful purpose when all
headers where in the same directory as the source.
we moved them out so that is no longer the case.
--
MST
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", (continued)
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Michael S. Tsirkin, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Daniel P . Berrangé, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Michael S. Tsirkin, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Daniel P . Berrangé, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Michael S. Tsirkin, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Gerd Hoffmann, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Thomas Huth, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "",
Michael S. Tsirkin <=
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Daniel P . Berrangé, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Michael S. Tsirkin, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Daniel P . Berrangé, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Michael S. Tsirkin, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Max Reitz, 2018/03/20
- Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Michael S. Tsirkin, 2018/03/20
Re: [Qemu-ppc] [Qemu-block] [PATCH] qemu: include generated files with <> and not "", Stefan Hajnoczi, 2018/03/20
Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Michael S. Tsirkin, 2018/03/20
Re: [Qemu-ppc] [PATCH] qemu: include generated files with <> and not "", Eric Blake, 2018/03/20