Question for removing trailing whitespaces (not vertical tab) from source
Andrew Haley
aph@redhat.com
Tue Mar 13 15:23:00 GMT 2007
Kai Tietz writes:
> Andrew Haley <aph@redhat.com> wrote on 13.03.2007 16:03:57:
>
> > Ian Lance Taylor writes:
> > > 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,
> >
> > Please don't check it in, though! That would be really bad. It would
> > do horrible things to diffs, particularly between branches.
>
> But I was questioned to do this stuff, for those files changed by a patch
> of mine. So I tought, if I should do, than do it for the complete gcc (not
> root) folder. How to process ?
Feel free to do it to your local copy. Don't do it to the gcc source
code repository.
Andrew.
More information about the Gcc
mailing list