-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[GPU] Address clang-tidy complaints #2431
Conversation
@@ -553,7 +553,8 @@ class layout_t { | |||
b_str.append(1, '*'); | |||
} | |||
} | |||
ret = b_str + ret; | |||
b_str += ret; | |||
std::swap(ret, b_str); |
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.
Was it a bug? The new sequence doesn't seem to do what it was doing before...
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.
b_str
is destroyed immediately after this, so we don't care what happens to it. The effect on ret
should be the same. I could replace the swap with ret = std::move(b_str)
if it is clearer? Visually that change looks like it would be better as the original, so the swap is there to help prevent someone coming along later and trying to undo the change.
60e94cb
to
c377734
Compare
c377734
to
e1d1ebe
Compare
e1d1ebe
to
bece593
Compare
make test |
bece593
to
5d22ea7
Compare
Addresses most of the clang-tidy hits in MFDNN-13007. Missing are fixes for macro warnings and emulation.hpp class name styling.
make test
andmake test_benchdnn_*
) pass locally for each commit?