-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[clang-tidy] fix missing braces #1928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/benchmark.cc
Outdated
| } | ||
| display_reporter->Finalize(); | ||
| if (file_reporter) file_reporter->Finalize(); | ||
| if (file_reporter) {file_reporter->Finalize();} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clang-formatted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
working on it. still draft :)
| if (ret == 0) return std::string{}; | ||
| if (static_cast<std::size_t>(ret) < local_buff.size()) | ||
| if (ret == 0) { | ||
| return {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change
LebedevRI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've looked through the whole diff, and this seems fine,
but i hope this was not done by hand but using clang-tidy -fix -check=<????> :)
Thank you.
yes, with a few fixups because it didn't do a perfect job. |
part of #1925