Re: New scope checking patch

Daniel Jacobowitz
2008-01-18T01:31:10Z

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