clang-tidy - fuchsia-statically-constructed-objects

Warns if global, non-trivial objects with static storage are constructed, unless
the object is statically initialized with a constexpr constructor or has no
explicit constructor.

For example:

classA{};classB{public:B(intVal):Val(Val){}private:intVal;};classC{public:C(intVal):Val(Val){}constexprC():Val(0){}private:intVal;};staticAa;// No warning, as there is no explicit constructorstaticCc(0);// No warning, as constructor is constexprstaticBb(0);// Warning, as constructor is not constexprstaticCc2(0,1);// Warning, as constructor is not constexprstaticinti;// No warning, as it is trivialexternintget_i();staticC(get_i())// Warning, as the constructor is dynamically initialized