diff options
author | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-09-13 08:58:11 +0000 |
---|---|---|
committer | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-09-13 08:58:11 +0000 |
commit | acb6b35b566e6558cef7bfc1d3c19943786c01c9 (patch) | |
tree | 5fe82e4c6009edcae845c0b891f26deaeb25991b /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 520a18df9ca30e4cacdb4cbfa79fa18b70b724db (diff) | |
download | bcm5719-llvm-acb6b35b566e6558cef7bfc1d3c19943786c01c9.tar.gz bcm5719-llvm-acb6b35b566e6558cef7bfc1d3c19943786c01c9.zip |
[clang-tidy] Extend readability-container-size-empty to arbitrary class with size() and empty()
This patch extends readability-container-size-empty check allowing it to produce
warnings not only for STL containers, but also for containers, which provide two
functions matching following signatures:
* `size_type size() const;`
* `bool empty() const;`
Where `size_type` can be any kind of integer type.
This functionality was proposed in https://llvm.org/bugs/show_bug.cgi?id=26823
by Eugene Zelenko.
Approval: alexfh
Reviewers: alexfh, aaron.ballman, Eugene.Zelenko
Subscribers: etienneb, Prazek, hokein, xazax.hun, cfe-commits
Differential Revision: https://reviews.llvm.org/D24349
llvm-svn: 281307
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
0 files changed, 0 insertions, 0 deletions