Liste des Groupes | Revenir à cl c |
Bart <bc@freeuk.com> writes:That would be detected quite easily if the default for -ftabstop were, say, 27. Then the chance of accidentally matching indents with tabs and spaces would be negligible.On 22/09/2024 16:11, Kaz Kylheku wrote:[...]The -Wmisleading-indentation option was added to gcc on 2015-05-12,Also GCC has been able to diagnose misleading indentation for some>
years now.
How many years was that out of the last 52? How exactly do you turn it
on? Since -Wall -Wpedantic -Wextra doesn't report it.
and incorporated into -Wall 2015-12-10. gcc 6.1.0 has the option
and includes it in -Wall; gcc 5.3.0 does not. (Are you using a gcc
release that old?) It uses the -ftabstop= option (defaulting to 8)
to determine whether indentation lines up or not.
Inconsistent tabstops and mixing of spaces and tabs can certainly
cause problems.
Les messages affichés proviennent d'usenet.