On Fri, Feb 18, 2011 at 1:52 PM, Renato Golin <span dir="ltr"><<a href="mailto:rengolin@systemcall.org">rengolin@systemcall.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 18 February 2011 21:34, Talin <<a href="mailto:viridia@gmail.com">viridia@gmail.com</a>> wrote:<br>
> Sorry, I meant DIBuilder.<br>
<br>
DIBuilder is the new DIFactory. I've been playing with it this week<br>
and it's much easier and straightforward to use. I'm still having<br>
problems to create arrays, though.<br>
<br>
As far as I remember (from the 2010 meeting), the idea was to replace<br>
and deprecate DIFactory.<br>
<br>
I'm not saying we should do it now, just saying Clang should have no<br>
more deps on the old DIFactory to avoid header pollution, since it's<br>
only on one enum... ;)<br>
<br></blockquote><div>Yeah, I remember that conversation - I just didn't know that any action had been taken.</div><div><br></div><div>However, my other concern is this: According to the LLVM Coding Standards document (<a href="http://llvm.org/docs/CodingStandards.html#ll_naming">http://llvm.org/docs/CodingStandards.html#ll_naming</a>):</div>
<div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div class="gmail_quote"><div><span class="Apple-style-span" style="font-family: Times; font-size: medium; "><b>Function names</b></span></div>
should be verb phrases (as they represent actions), and command-like function should be imperative. The name should be camel case, and start with a lower case letter (e.g. <tt>openFile()</tt> or <tt>isFoo()</tt>).</div>
</blockquote>
<div class="gmail_quote"><div><font class="Apple-style-span" face="Times" size="3"><br></font></div><div>The coding standards say functions should begin with a lower case letter, but I see a lot of new code (not just DIBuilder) that uses method names that begin with an upper case letter. Is the document incorrect, or is there basically no enforcement? </div>
<div><br></div><div>-- </div></div>-- Talin<br>