Hello everybody,
Some of you might be following the code beautifiers series of posts. The whole point is to allow everybody to write code in their favorite style but have their code converted to Calitko style prior to submitting any patches. We already discussed about using GNU indent or AStyle or Jalopy. I’ve experimented with a number of tools and all seemed unsuited for the Calitko style.
Not anymore! Yesterday I tried out GC (GreatCode) and it made a really good impression! It has over hundred individual configuration options, which very finely control the output. I was also able to quickly patch GC add two new configuration options: one for braces style for namespaces (-stmt_brace_style_namespace-) and one for our special space between function name and non-empty parentheses (-no-space_fct-empty-args-).
GC seems to mess too much with comments even after disabling comment processing, but I think it’s all a matter of configuration. I’m very optimistic that GC can be configured or extended to fully support the Calitko style! If anybody wants to help me with that, please contact me!
Regards,
Peter
P.S. Attached is the configuration file and the processed Packet.h and Packet.cpp from Gnutella/Packets.
