Open matthiasbeyer opened 10 years ago
@neithernut you're welcome to review my (kind of) suggestions and replace astyle with it after we chose one.
A blank line at EOF is good. It keeps Git happy. Although, I don't know the extent, so if it adds multiple (or one everytime it is run) then it has to go.
Piping through astyle yields one additional newline per run.
That sucks, indeed!
I guess KWStyle sounds good, but well, I don't know the details (of either of the listed suggestions). So @neithernut should evaluate and tell us what is the best idea for the project (and eventually for other projects as well...)
I'm on it
gnu indent and uncrustify are availible in package repos and somewhat similar to astyle, so the config file may be more easily ported from the astylerc. They, too, do not support style checking. However, we already have a workaround. Uncrustify's default config contains a hint about it's version, so it may be forward-compatible in some way. Someone would have to test this.
KWStyle looks good. Also, it's XML all over the place.
Vera++ and nsiqcppstyle are out since they seem to be cpp only.
for cb
I didn't find anything useful (try googleing for "cb"...)
uncrustify looks like a C++ thing to me, too. Maybe we (you?) should try gnu indent
first... if you want.
I'm on the train in a few minutes, so I probably can't do it until tomorow.
I don't care about this one as much as about others. it is in the 'v0.0.1' milestone, which is due end of the month. I consider this is secondary and not as important as the actual code. I would love to see more code instead of this.
@TheNeikos @manuelmessner: evaluating the alternatives mentioned in this discussion (gnu indent
and uncrustify
and maybe KWStyle
) would be a possibility to contribute which does not require deep knowledge about any internas.
Astyle behaves/is very bad:
It should be replaced.
Alternatives I know (by name) are:
cb
which is an ancient beautifier (code beautifier
) but may match our needsWe should discuss the alternatives here.