Add warn_unused_result to empty() on various containers.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Sep 2013 17:33:24 +0000 (17:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Sep 2013 17:33:24 +0000 (17:33 +0000)
commitcbe40cfe96a6bb3f2da56445269c2c71e55e0e56
tree2e8de837bd5fe4285004d64f3a7b1dbf5d57cbed
parente946a9ceda24775153c2c869e30afab058088238
Add warn_unused_result to empty() on various containers.

empty() doesn't actually empty out the container, making this a common typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190708 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/DenseMap.h
include/llvm/ADT/SmallPtrSet.h
include/llvm/ADT/SmallVector.h
include/llvm/ADT/ilist.h