This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: New scope checking patch


On Thu, Jan 17, 2008 at 01:57:58PM -0800, Jim Blandy wrote:
> I'm told Open Source projects avoid tabs, but it seems that GDB
> permits them, with tab stops every 8 columns.  The GNU coding
> standards don't say much about tab use or width, beyond saying that
> error messages that include line and column numbers should assume tab
> stops every 8 columns when computing column numbers.

GDB in fact requires them.  Leading eight spaces should always be
tabs.  Remaining spaces should be spaces and tabs in the middle of
lines are generally frowned upon.

This is, not coincidentally, what Emacs does.

You can use the gdb_indent.sh script, but if the file has not
previously been indented it may make a mess.  That just runs GNU
Indent with some magic options.

-- 
Daniel Jacobowitz
CodeSourcery


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