Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
This commit is contained in:
@ -70,8 +70,9 @@ private:
|
||||
int line = 0;
|
||||
|
||||
bool operator<(const Breakpoint &p_b) const {
|
||||
if (line == p_b.line)
|
||||
if (line == p_b.line) {
|
||||
return source < p_b.source;
|
||||
}
|
||||
return line < p_b.line;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user