[PATCH] D31542: [clang-tidy] Extend readability-container-size-empty to add comparisons to newly-constructed objects
Josh Zimmerman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 17 14:57:25 PDT 2017
joshz updated this revision to Diff 95488.
joshz marked an inline comment as done.
joshz edited the summary of this revision.
joshz added a comment.
Resolved the bug, with a slightly modified version of Aaron's suggestion. (It will suggest parens for anything that wasn't just a DeclRefExpr, which may be a bit over-exuberant, but not as much as always suggesting them.)
Repository:
rL LLVM
https://reviews.llvm.org/D31542
Files:
clang-tidy/readability/ContainerSizeEmptyCheck.cpp
test/clang-tidy/readability-container-size-empty.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31542.95488.patch
Type: text/x-patch
Size: 14401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170417/6284765d/attachment.bin>
More information about the cfe-commits
mailing list