<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Aug 2, 2013, at 2:07 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="gmail_extra"><div class="gmail_quote"><br class="Apple-interchange-newline">On Fri, Aug 2, 2013 at 1:56 PM, Rafael Espíndola<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank" class="cremed">rafael.espindola@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div id=":cza" style="overflow: hidden;">One exception we have in the coding standard is that classes that look<br>like STL ones should use similar names for the methods (begin(),<br>push_back(), etc...).<br><br>But different parts of llvm have different opinions on how to handle<br>the related case of classes that are not STL like, but have multiple<br>collections that can be iterated over.<br><br>* llvm/IR uses global_begin, alias_begin, etc. I.E., singular name + _begin().<br>* llvm/Object uses begin_symbols, begin_sections, etc. I.E, begin_ +<br>plural name.<br>* others (YAML, LoopIterator) use beginSequence, beginFlowSequence, etc.<br><br>I would like to propose adding the the format used by llvm/IR to the<br>coding standard since it seems to be the most common.</div></blockquote></div><div class="gmail_extra"><br></div>Please do so. That is clearly the more consistent pattern to follow.<br></div></div></blockquote><div><br></div>+1.</div><div><br></div></body></html>