Re: Ordering of header file inclusion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Ordering of header file inclusion
Дата
Msg-id 18272.1571547237@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Ordering of header file inclusion  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2019-10-19 21:50:03 +0200, Peter Eisentraut wrote:
>> This class of change I don't like.
>> The existing arrangement keeps "other" header files separate from the
>> header file of the module itself.  It seems useful to keep that separate.

> If we were to do so, we ought to put bloom.h first and clearly seperated
> out, not last, as the former makes the bug of the the header not being
> standalone more obvious.

We have headerscheck and cpluspluscheck to catch that problem, so I don't
think that it needs to be a reason not to rationalize header inclusion
order.

I don't have a very strong opinion on whether modules outside the core
backend should separate their own headers from core-system headers.
I think there's some argument for that, but it's not something we've
done consistently.  And, as you say, there's no convention as to
where we'd include local headers if we do separate them.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Euler Taveira
Дата:
Сообщение: Re: Add a GUC variable that control logical replication
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Remove obsolete information schema tables