-
Notifications
You must be signed in to change notification settings - Fork 278
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
clang-tidy with headers #2200
clang-tidy with headers #2200
Conversation
This pull request introduces 2 alerts and fixes 2 when merging cd1ce62 into 053f516 - view on LGTM.com new alerts:
fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## main #2200 +/- ##
==========================================
+ Coverage 63.31% 63.33% +0.01%
==========================================
Files 99 115 +16
Lines 19586 19607 +21
Branches 9555 9552 -3
==========================================
+ Hits 12401 12418 +17
- Misses 5113 5115 +2
- Partials 2072 2074 +2
Continue to review full report at Codecov.
|
src/crwimage.cpp
Outdated
@@ -92,10 +92,10 @@ void CrwImage::writeMetadata() { | |||
CrwParser::encode(blob, buf.c_data(), buf.size(), this); | |||
|
|||
// Write new buffer to file | |||
auto tempIo = std::make_unique<MemIo>(); | |||
tempIo->write((!blob.empty() ? &blob[0] : nullptr), blob.size()); | |||
auto tempIo = MemIo(); |
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.
Good catchs in this commit 👏 . Is this something automatically detected by clang-tidy?
I would only suggest to take a step more here. I think it is more intuitive to write MemIo tempIo;
(Here and in all the other cases)
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.
Nope. Saw it while browsing the code.
This pull request fixes 2 alerts when merging 0ae5280 into 053f516 - view on LGTM.com fixed alerts:
|
This pull request fixes 2 alerts when merging eead935 into 053f516 - view on LGTM.com fixed alerts:
|
They're not really used as pointers. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
clang-tidy has issues applying these. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This pull request fixes 2 alerts when merging c997b09 into 053f516 - view on LGTM.com fixed alerts:
|
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.
LGTM, Thanks!
No description provided.