Three and a half years ago I wrote down my personal C++ Coding Guide. My programming style has changed a bit since then, and it’s time for an update of the original article. This is the changelog: The clang-format style definition was created for … not sure exactly. Clang 6? I updated it for Clang 15. Nothing substantial changed. The name of the private namespace changed from detail to private_. On the one hand detail is extremely common in the Standard adjacent community. On the other ha...| Here Be Braces
In my job I’m currently dealing with writing coding guides for several languages. That prompted me to sit down to do something I’ve been thinking about for quite a while: Compiling my personally preferred way of writing C++ into my very own coding guide – a.k.a. this article. The guide was written in 2019 and updated in 2023. See the changelog for details. As I see it a coding guide consists of two parts: The style guide contains rules and guidelines about formatting and naming. This pa...| Here Be Braces