We want initializations in our C++ code to use uniform initialization, e.g.:
bool b { true };
It would be great to have a tool helping us to modernize our code.
To my surprise, I only found modernize-return-braced-init-list
which is about return statements.
Does no such tidy exist? Why?
Is there a way to tell one of the big compilers (Microsoft, CLANG / LLVM, gcc) to warn with a statement such as:
bool b = 5;
This is valid C++ but not possible with uniform initialization.
Wolfram Kuss is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.