[PATCH] D24349: [clang-tidy] Extend readability-container-size-empty to arbitrary class with size() and empty()

Kirill Bobyrev via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 8 08:57:51 PDT 2016


omtcyfz created this revision.
omtcyfz added reviewers: alexfh, Eugene.Zelenko, klimek.
omtcyfz added a subscriber: cfe-commits.

Implementing [[ https://llvm.org/bugs/show_bug.cgi?id=26823 | feature request ]].

This patch extends readability-container-size-empty check allowing it to produce warnings not only for stl containers.

https://reviews.llvm.org/D24349

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24349.70708.patch
Type: text/x-patch
Size: 6161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160908/bfa5a8c8/attachment-0001.bin>


More information about the cfe-commits mailing list