Re: Adding a clang-format file

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Adding a clang-format file
Дата
Msg-id CAJ7c6TNeTUPrjfNbfZQ7hREo5FEZDLavm68MSGvf-_X2aZgPPA@mail.gmail.com
обсуждение исходный текст
Ответ на Adding a clang-format file  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: Adding a clang-format file  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
Hi Peter,

> I really don't see any real problem with making something available,
> without changing any official project guidelines. It's commonplace to
> provide a clang-format file these days.

Personally I don't have anything against the idea. TimescaleDB uses
clang-format to mimic pgindent and it works quite well. One problem
worth mentioning though is that the clang-format file is dependent on
the particular version of clang-format. TSDB requires version 7 or 8
and the reason why the project can't easily switch to a newer version
is that the format has changed. So perhaps a directory would be more
appropriate than a single file.

-- 
Best regards,
Aleksander Alekseev



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

Предыдущее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: Perform streaming logical transactions by background workers and parallel apply
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: A doubt about a newly added errdetail