Go to file
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
clang Allow register variables in naked functions. 2016-09-13 07:02:02 +00:00
clang-tools-extra [clang-tidy] Extend readability-container-size-empty to arbitrary class with size() and empty() 2016-09-13 08:58:11 +00:00
compiler-rt [sanitizer] replace CHECK with CHECK_XY in two places for better diagnostics 2016-09-12 20:39:13 +00:00
debuginfo-tests
libclc Replace nextafter implementation 2016-09-08 16:37:56 +00:00
libcxx config: Use _LIBCPP_TYPE_VIS_ONLY with enum class 2016-09-12 21:41:12 +00:00
libcxxabi [lit] Replace print with lit_config.note(). 2016-09-02 13:56:05 +00:00
libunwind Add missing _US_ACTION_MASK constant to unwind.h 2016-09-05 18:01:13 +00:00
lld [CMake] Fix linker-as-ld to symlink instead of copy lld 2016-09-12 22:38:43 +00:00
lldb Reduce the number of simultaneous debug sessions to 10 and remove 2016-09-13 02:45:45 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm Revert of r281304 as it is causing build bot failures in hexagon 2016-09-13 08:51:59 +00:00
openmp Fix bitmask upper bounds check 2016-09-12 19:02:53 +00:00
parallel-libs [SE] Clean up device and host memory slices 2016-09-12 17:20:43 +00:00
polly GPGPU: Allow region statements 2016-09-13 08:42:10 +00:00