Background
A large number of single-line if conditions omit curly braces — this is an error-prone coding style. To avoid setting a poor example and eliminate potential bugs, we should correct these instances proactively.
Methods
Enabling the readability-braces-around-statements check in .clang-tidy, then run clang-tidy will highlight all relevant warnings. We can then address these issues one by one.
Component(s)
C++, Format