@evoskuil @pmienk following the conversation on trying out clang-format, I had a go. Here's a PR:
https://github.com/evoskuil/libbitcoin-system/pull/13
The rules in clang-format are a starting point. If you can look at what doesn't work, I can try and make changes to clang-format rules to try and get as close to what we want.
I started with 'Microsoft' styles that ship with clang-format and made some minor changes to conform to some of our existing styles.
Then I thought, it might be best to bring this here to see how much more we want to tweak.