andrei.pavel at qualitance.com
Fri Sep 9 14:04:06 UTC 2016
In an attempt to automatize code styling, we've been experimenting
with clang-format for the last month.
We've managed to come up with a style that is consistent with Kea
guidelines and the majority of the existing Kea code style.
We'd be happy to see it part of the official Kea repository after
you've experimented with it yourself and modified it as you see fit.
I'm sure you already know this, to use it - you save it in Kea's
source root directory and run clang-format --style=file <filename>.
Use -lines parameter if you want to partially format the file. Lots of
editors (e.g. vim, Eclipse, QtCreator, Atom) have plugins that already
support this via a keyboard shortcut which might be more convenient.
More information about the kea-dev