Skip to content
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: Enable readability checks #361

Merged
merged 4 commits into from
Jun 8, 2020
Merged

Conversation

chfast
Copy link
Collaborator

@chfast chfast commented May 29, 2020

No description provided.

@chfast chfast marked this pull request as draft May 29, 2020 09:16
@codecov
Copy link

codecov bot commented Jun 8, 2020

Codecov Report

Merging #361 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #361   +/-   ##
=======================================
  Coverage   98.93%   98.94%           
=======================================
  Files          42       42           
  Lines       12320    12317    -3     
=======================================
- Hits        12189    12187    -2     
+ Misses        131      130    -1     

@axic
Copy link
Member

axic commented Jun 8, 2020

@chfast you want to land this?

@chfast chfast marked this pull request as ready for review June 8, 2020 13:05
@chfast chfast requested review from axic and gumb0 June 8, 2020 13:05
@chfast chfast merged commit 51c232b into master Jun 8, 2020
@chfast chfast deleted the clang-tidy-readability branch June 8, 2020 17:08
@@ -8,7 +8,7 @@
#include <gmock/gmock.h>
#include <iosfwd>

MATCHER(Traps, "")
MATCHER(Traps, "") // NOLINT(readability-redundant-string-init)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw what is this error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It generates code like std::string s = "".

return false;

return true;
return r.result == wabt::interp::Result::Ok;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still hoped to prove both branches are covered with #381, but will add back the inverse of this commit for a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants