On Wed, Dec 14, 2011 at 3:59 PM, Douglas Gregor <[email protected]> wrote:
> +/// \brief Determine whether two declarations declare the same entity.
> +inline bool declaresSameEntity(const Decl *D1, const Decl *D2) {
> + if (D1 == D2)
> + return true;
> +
> + if (!D1 || !D2)
> + return false;
>
I find this very surprising. I would expect either being NULL to always
return false... Was this intentional? If so, I would comment about it.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits