This is the mail archive of the gcc-patches@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: 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.


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