4 ms·
I use Google's, but don't follow it to the word. I use their linter with couple of my own rules related to C++11 headers (chrono, etc), lines width, whitespaces
by manca 8y ago
I use Google's, but don't follow it to the word. I use their linter with couple of my own rules related to C++11 headers (chrono, etc), lines width, whitespaces, etc.
But in general, I try to follow good practices from it like: namespace formatting, as well as anonymous/unnamed namespaces, names and order of includes, #define guard (although I prefer #pragma once), use of smart pointers (fixed owners for dynamically allocated objects), explicit constructors, etc.