trivial trailing whitespace issue
Joseph S. Myers
joseph@codesourcery.com
Wed Nov 25 20:58:00 GMT 2009
On Wed, 25 Nov 2009, Basile STARYNKEVITCH wrote:
> My wish would be that every C source file in GCC would be indent-ed by GNU
> indent with --gnu option. But since this has not been done, I suppose it is
> (sadly) not realistic. I don't understand all the issues involved (but I do
There are various deviations of GCC style from what GNU indent does. If
you want to make this a reality, I advise enhancing GNU indent to add
options to make it follow the style used in GCC as closely as possible,
while adding parentheses (etc.) to GCC where the present source makes
proper indenting intrinsically hard for indent to do. Enhancing GNU
indent to follow the GCC style is the way to minimise the controversy
involved in any mass reindentation patch. Then you can write a commit
hook, and test it in a copy of the repository, that reindents modified
files (compiler source only, list of exceptions for generated files, not
touching testcases) and gives error on commit if the reindentation is not
the identity operation.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc
mailing list