Bug 28732 - Can we please please strip the tabs in standard template headers
Summary: Can we please please strip the tabs in standard template headers
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.0.2
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-15 10:47 UTC by Marc Goodman
Modified: 2006-08-15 15:03 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Goodman 2006-08-15 10:47:16 UTC
GNU? makes some wonderful, and powerful code. Thank you for your efforts.

Dropping into code, that is effectively of required use, e.g?   "stl_iterator.h"  that is complicated enough on its own,  while trying to fix some crazily complicated template problem in code one is writing,  and then   discovering that??   Due to the configurations of tabs on an editor, the code you're looking at is, well, unintelligibly unreadable. 

This is? a bit maddeningly frustrating -- and wonderfully excerbatingly so when debugging, and then finding yourself debug stepping across code, from different sources that you can't control, while encountering all sorts of different 'tab stop' defaults, 3 spaces, 4 spaces, 8 spaces, style, etc, etc)

PLEASE PLEASE!! Can GNU strip the tabs (tabs--> spaces), before releasing, on such key important files?    

Asking around before sending this, many others share my frustration on this point.
Comment 1 Richard Biener 2006-08-15 12:10:24 UTC
What host are you working on?  If that host usual editors or debuggers cannot
cope with tabs the installed headers could be sanitized by a script...  Also
tabs are all 8 spaces, so I wonder what your editor/debugger does here.

In general this won't be fixed in the sources, though.
Comment 2 Paolo Carlini 2006-08-15 12:17:05 UTC
(In reply to comment #1)
> What host are you working on?  If that host usual editors or debuggers cannot
> cope with tabs the installed headers could be sanitized by a script...  Also
> tabs are all 8 spaces, so I wonder what your editor/debugger does here.
> 
> In general this won't be fixed in the sources, though.

Yes, if I understand correctly the request (i.e., for some mysterious reason, all the tabs should be changed to spaces?!?), *definitely* it won't.
Comment 3 Andrew Pinski 2006-08-15 15:03:38 UTC
Please read: http://gcc.gnu.org/codingconventions.html

This is the coding convention we use, sorry.