<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 9, 2014 at 2:17 AM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Oct 9, 2014 at 3:31 AM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:<br>
><br>
> On Wed, Oct 8, 2014 at 7:20 PM, Nick Kledzik <<a href="mailto:kledzik@apple.com">kledzik@apple.com</a>> wrote:<br>
>><br>
>> The lld conventions for ivars is a leading underscore followed by a<br>
>> lowercase letter.  The reserved identifiers are a leading underscore<br>
>> followed by an uppercase letter.  There is no conflict.<br>
><br>
><br>
> And I didn't say that there was. They are *close*. Too close. People make<br>
> mistakes and get it wrong.<br>
<br>
</span>I like how LLD style improves upon LLVM style, but the concern about<br>
reserved identifiers is very real.  May I suggest a variation: use a<br>
trailing underscore for member variables instead of a trailing<br>
underscore?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>I've been bitten by the following autocomplete:</div><div><br></div><div>struct Foo {</div><div>  Foo(int count) : count_(count_) {}</div><div>  int count_;</div><div>};</div><div><br></div><div>When this happened to me, it was very difficult to track down. Now, we might have a warning that protects against that though.</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>