This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] readability-container-size-empty fixes
ClosedPublic

Authored by xazax.hun on Apr 19 2016, 6:14 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

xazax.hun updated this revision to Diff 54182.Apr 19 2016, 6:14 AM
xazax.hun retitled this revision from to [clang-tidy] readability-container-size-empty fixes.
xazax.hun updated this object.
xazax.hun added reviewers: hokein, Eugene.Zelenko.
xazax.hun added subscribers: o.gyorgy, cfe-commits.
hokein accepted this revision.Apr 19 2016, 6:30 AM
hokein edited edge metadata.

Thanks! LGTM with one nit.

test/clang-tidy/readability-container-size-empty.cpp
44 ↗(On Diff #54182)

You don't need to check the whole message (we only check the whole message at first place), just keep CHECK-MESSAGES: :[[@LINE-2]]:7: warning: the 'empty' method should be used.

48 ↗(On Diff #54182)

The same.

This revision is now accepted and ready to land.Apr 19 2016, 6:30 AM
This revision was automatically updated to reflect the committed changes.