r203353 - [C++11] Replacing EnumDecl iterators enumerator_begin() and enumerator_end() with iterator_range enumerators(). Updating all of the usages of the iterators with range-based for loops.

Chandler Carruth chandlerc at google.com
Sat Mar 8 17:15:28 PST 2014


Also, a separate meta-point:

On Sat, Mar 8, 2014 at 10:45 AM, Aaron Ballman <aaron at aaronballman.com>wrote:

> +  typedef specific_decl_range<EnumConstantDecl> enumerator_range;
>

Someone suggested this to me and I'm starting to agree -- I think we should
stop doing typedefs because it seems unlikely that these types should be
named by consumers at all between auto and the fact that the range itself
is unlikely to be used as a long-lived variable or parameter. Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140308/e2f1a7de/attachment.html>


More information about the cfe-commits mailing list