count() patch to unsigned for SmallPtrSet, SmallSet, SparseSet
Alp Toker
alp at nuanti.com
Sat Dec 21 10:40:46 PST 2013
LGTM
On 21/12/2013 09:48, Yaron Keren wrote:
> The count() function for STL datatypes returns unsigned, even where
> it's only 1/0 result like std::set. Some of the LLVM ADT already
> return unsigned count(), while others still return bool count().
>
> This patch modifies SmallPtrSet, SmallSet, SparseSet :: count() to
> return unsigned instead of bool, 1 instead of true and 0 instead of false.
>
> Yaron
>
--
http://www.nuanti.com
the browser experts
More information about the cfe-commits
mailing list