This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Coding standards (was treelang patch)
- From: dewar at gnat dot com (Robert Dewar)
- To: geoffk at geoffk dot org, tej at melbpc dot org dot au
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Sun, 12 May 2002 16:46:07 -0400 (EDT)
- Subject: Re: Coding standards (was treelang patch)
<<I was also under the impression that one should not use tabs in GCC programs. Ag
ain I could find no authority for this point (over a hundred thousand instances
of this, so maybe I made that one up).
>>
I think it is a very bad idea to have hard tab characters in sources, since
it can lead to bogus differences between files (unless you have canonical
rules requiring maximal tabs). In GNAT we forbid tabs or trailing spaces (same
ind of consideration) in Ada sources.
But I think that random tabs in gcc C sources is well established. I know
that when I tried to argue for the no tabs rule in the GNAT C sources Richard
Kenner argued strongly against this.