<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 29, 2014 at 6:38 PM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 29/01/2014 17:23, David Blaikie wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Wed, Jan 29, 2014 at 9:13 AM, Alp Toker <<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a> <mailto:<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>>> wrote:<br>
<br>
<br>
    On 29/01/2014 16:47, David Blaikie wrote:<br>
<br>
<br>
<br>
<br>
        On Wed, Jan 29, 2014 at 12:49 AM, Manuel Klimek<br>
        <<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a> <mailto:<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>><br></div><div><div class="h5">
        <mailto:<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a> <mailto:<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>>>> wrote:<br>
<br>
            Author: klimek<br>
            Date: Wed Jan 29 02:49:02 2014<br>
            New Revision: 200381<br>
<br>
            URL: <a href="http://llvm.org/viewvc/llvm-project?rev=200381&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=200381&view=rev</a><br>
            Log:<br>
            Fix crash on unmatched #endif's.<br>
<br>
            The following snippet would crash:<br>
              #endif<br>
              #if A<br>
<br>
<br>
        Any reason this wasn't contributed as a test case?<br>
<br>
<br>
                   ==============================<u></u>==============================<u></u>==================<br>
            --- cfe/trunk/unittests/Format/<u></u>FormatTest.cpp (original)<br>
            +++ cfe/trunk/unittests/Format/<u></u>FormatTest.cpp Wed Jan 29<br>
        02:49:02 2014<br>
            @@ -2427,6 +2427,11 @@ TEST_F(FormatTest,<br>
        LayoutStatementsAroun<br>
                            "#endif");<br>
             }<br>
<br>
            +TEST_F(FormatTest,<br>
        GraciouslyHandleIncorrectPrepr<u></u>ocessorConditions) {<br>
            +  verifyFormat("#endif\n"<br>
            +               "#if B");<br>
            +}<br>
            +<br>
<br>
<br>
    Like this?<br>
<br>
<br>
Yep, exactly that. Clearly too early in the morning - thanks guys.<br>
<br>
(if I had to guess I'd say it was a combination of "oh, someone mentioned a test case in the commit message, this is often associated with that test case not actually being committed" and my not noticing a unittest change in my simple brain-fuzzy-matcher that searches for the more common lit tests)<br>

</div></div></blockquote>
<br>
It's great that you're looking. If only more people made the effort</blockquote><div><br></div><div>+1 to the "thank you for caring"!</div><div><br></div></div></div></div>