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: D language support


Tom Tromey wrote:
"Leandro" == Leandro Lucarella <llucax@gmail.com> writes:

Leandro> Is the indent program invoked with -gnu option enough to fix the style Leandro> nits or GDB has its own rules? It might save some time to everybody =)

Weirdly, indent -gnu doesn't really use the GNU style.
It is a sort of approximation.

We have a gdb_indent.sh in the tree, and I think it was used at one
point, but in the end I think it was abandoned. I think sometimes it
did the wrong thing.
To some extent, one just has to decide that the output of the script is "correct", even if it looks wrong here and there. But I think part of the pain comes from having *two* programs - emacs and indent - that can have differing conclusions, and being unsure as to which should take precedence.

Somebody should give gdb_indent.sh a try, see how it does on today's sources. We have more people participating in maintenance these days, seems like we could run it once a week or so, and it has the bonus of cleaning up after those rouge global maintainers who check in massive hacks willy-nilly. :-)

Stan


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