This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question for removing trailing whitespaces (not vertical tab) from source


Andrew Haley <aph@redhat.com> writes:

> Kai Tietz writes:
> 
>  > I want to remove some trailing whitespaces from gcc source as coding style 
>  > demands. Also I wrote, while doing a small tool for that, a feature to 
>  > replace horiz. tabs by spaces. But the question is by which width should 
>  > be used ?
> 
> 8.

But please do not turn tabs into spaces in the gcc source code.

I think removing trailing whitespace would be OK, although it does
tend to obscure svn blame.  I wonder if we could have some sort of svn
trigger to check for trailing whitespace as a pre-commit check on .c
and .h files?

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]