<div dir="ltr">Here's a new version of the simple patch. nullptr tests are gone, and I've uncommented tests that generate incorrect warnings. As discussed, I've left a few tests commented out because they trigger crashes or asserts: I think having the tests there but commented out serves as a cheap/poor form of documentation of the current state of these bugs in clang, and it should make upcoming patches that contain fixes smaller and easier to read. Let me know if you'd like me to remove those too.<div>
<br></div><div>Since I don't have clang/llvm commit access, are you able to commit this on my behalf once this looks good to oyu?<br><br>Thanks!</div></div><div class="gmail_extra"><br clear="all"><div><span style="color:rgb(153,153,153)">-Alex</span><br>
</div>
<br><br><div class="gmail_quote">On Mon, Mar 31, 2014 at 3:47 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.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=""><br>
On Mar 31, 2014, at 10:40, Alex McCarthy <<a href="mailto:alexmc@google.com">alexmc@google.com</a>> wrote:<br>
<br>
> Thanks for your advice, Jordan.<br>
><br>
> I've split the NORETURN printing changes to CFG.cpp and the new test additions into a separate patch (attached). Hopefully this should be a safe no-op from a behavior perspective: debug output changes slightly, and the new test cases more accurately reflects current clang behavior. Does this look safe to commit?<br>
<br>
</div>Rather than commenting out tests, I'd prefer you put them in with the "wrong" expected-warnings, and then put a FIXME next to the warnings. Commented-out tests become dead tests all too easily.<br>
<br>
I would drop the tests from nullptr.cpp. That file's for testing nullptr and nullptr_t specifically, not null pointers in general, and the new tests don't actually test any new behavior if we already believe that nullptr properly converts to a null pointer value.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jordan<br>
<br>
</font></span></blockquote></div><br></div>