I'm setting up these files for discussing a common clang-format
that will be used across our projects. As far as I understood, using WebKit
as base finds many of us happy. The first release has been generated by
clang-format --style=webkit -dump-config
A good starting point for the available options is Clang-Format Style Options.
Here below you can find some code that covers many cases, I'll keep this updated with the style agreed so far. I didn't find any demo code that already covers most of the C++ standard (any suggestion?). When discussing something, if it is not clear from the code below, please provide a code snippet to show your point. I'll include your example afterwards.