llvm-project/clang-tools-extra/docs/clang-tidy
Kirill Bobyrev acb6b35b56 [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
2016-09-13 08:58:11 +00:00
..
checks [clang-tidy] Extend readability-container-size-empty to arbitrary class with size() and empty() 2016-09-13 08:58:11 +00:00
tools [clang-tidy] Python scripts shebang fixes 2016-01-19 16:10:39 +00:00
index.rst [clang-tidy docs] Fix build errors on Sphinx 1.4.5 2016-08-18 11:06:09 +00:00