waysome / libreset

Reentrant set lib based on threadsafe hashtable
GNU Lesser General Public License v2.1
3 stars 7 forks source link

Replace astyle #69

Open matthiasbeyer opened 10 years ago

matthiasbeyer commented 10 years ago

Astyle behaves/is very bad:

It should be replaced.

Alternatives I know (by name) are:

We should discuss the alternatives here.

matthiasbeyer commented 10 years ago

@neithernut you're welcome to review my (kind of) suggestions and replace astyle with it after we chose one.

TheNeikos commented 10 years ago

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.

neithernut commented 10 years ago

Piping through astyle yields one additional newline per run.

matthiasbeyer commented 10 years ago

That sucks, indeed!

matthiasbeyer commented 10 years ago

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...)

neithernut commented 10 years ago

I'm on it

neithernut commented 10 years ago

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"...)

matthiasbeyer commented 10 years ago

uncrustify looks like a C++ thing to me, too. Maybe we (you?) should try gnu indent first... if you want.

neithernut commented 10 years ago

I'm on the train in a few minutes, so I probably can't do it until tomorow.

matthiasbeyer commented 10 years ago

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.

neithernut commented 10 years ago

@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.