gcc -ftabstop option

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема gcc -ftabstop option
Дата
Msg-id 7d11adc5-2046-f29a-7f37-0f45f5093879@enterprisedb.com
обсуждение исходный текст
Ответы Re: gcc -ftabstop option  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Re: gcc -ftabstop option  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
I suggest that we add the gcc (also clang) option -ftabstop=4.

This has two effects:  First, it produces more accurate column numbers 
in compiler errors and correctly indents the code excerpts that the 
compiler shows with those.  Second, it enables the compiler's detection 
of confusingly indented code to work more correctly.  (But the latter is 
only a potential problem for code that does not use tabs for 
indentation, so it would be mostly a help during development with sloppy 
editor setups.)

Attached is a patch to discover the option in configure.

One bit of trickery not addressed yet is that we might want to strip out 
the option and not expose it through PGXS, since we don't know what 
whitespacing rules external code uses.

Thoughts?
Вложения

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

Предыдущее
От: Jakub Wartak
Дата:
Сообщение: RE: Use fadvise in wal replay
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Use fadvise in wal replay