<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Mar 9, 2014 at 5:41 AM, Aaron Ballman <span dir="ltr"><<a href="mailto:aaron@aaronballman.com" target="_blank">aaron@aaronballman.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, Mar 8, 2014 at 8:15 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:<br>

> Also, a separate meta-point:<br>
><br>
> On Sat, Mar 8, 2014 at 10:45 AM, Aaron Ballman <<a href="mailto:aaron@aaronballman.com">aaron@aaronballman.com</a>><br>
> wrote:<br>
>><br>
>> +  typedef specific_decl_range<EnumConstantDecl> enumerator_range;<br>
><br>
><br>
> Someone suggested this to me and I'm starting to agree -- I think we should<br>
> stop doing typedefs because it seems unlikely that these types should be<br>
> named by consumers at all between auto and the fact that the range itself is<br>
> unlikely to be used as a long-lived variable or parameter. Thoughts?<br>
<br>
</div></div>I can't recall a single place where the type was written. Are you<br>
thinking we should use the pattern:<br>
<br>
auto foos() { return llvm::iterator_range<foo_iterator>(foo_begin(),<br>
foo_end()); }<br></blockquote><div><br></div><div>No, deduced return types are a C++14 feature, certainly not supported by all our supported compilers :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Also, would it make sense to add: llvm::make_range so we do not have<br>
to spell out the iterator types?<br>
<span class="HOEnZb"><font color="#888888"><br>
~Aaron<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>