bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error message with -T


From: Tom Tromey
Subject: error message with -T
Date: Thu, 20 Dec 2007 10:55:27 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

I'm using GNU indent 2.2.9 on Fedora 8.

I'm investigating using indent to set the canonical style for GCC.

If I run 'indent -gnu -bs -bad -nsc -T tree -T type' on the attached
source file, I get an error:

indent: class.c:1391: Error:Unmatched 'else'

Omitting '-T type' makes this error go away.  There is not actually an
unmatched else in this file (because it compiles correctly).

Also, I happened to notice that the error message itself is a bit odd.
There should probably be a space before "Unmatched".  And, maybe it
should not be prefixed with "indent: " ... as I recall the GNU coding
standards ask that this be omitted for compiler-like messages.  (I
didn't test in Emacs to see if compile-mode understands the above :-)

Tom

Attachment: class.c
Description: class.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]