[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
Tue Apr 18 16:15:25 PDT 2017


joshz updated this revision to Diff 95655.
joshz added a comment.

Updated per some suggestions by sbenza@ on dealing with the parentheses; IsBinaryOrTernary is based on a function he wrote at Google.

PTAL.


Repository:
  rL LLVM

https://reviews.llvm.org/D31542

Files:
  clang-tidy/readability/ContainerSizeEmptyCheck.cpp
  clang-tidy/utils/ASTUtils.cpp
  clang-tidy/utils/ASTUtils.h
  test/clang-tidy/readability-container-size-empty.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31542.95655.patch
Type: text/x-patch
Size: 16291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170418/dc9ff16a/attachment.bin>


More information about the cfe-commits mailing list