Hi Richard,

I added two tests to match the two switch "forms" that the patch addresses.

-- 
David Majnemer

On Thu, Jun 9, 2011 at 6:54 PM, Richard Trieu <[email protected]> wrote:
> Hi David,
> I looked over your patch and don't see any problems with it.  There doesn't
> appear to be any test cases for this error.  Could you add some along with
> your patch?
> Richard.
> On Thu, Jun 9, 2011 at 12:46 AM, Chandler Carruth <[email protected]>
> wrote:
>>
>> Hey,
>> Not sure if you follow cfe-commits closely or not, but thought this would
>> be a good patch for you to review as you're the last to touch it.
>>
>> ---------- Forwarded message ----------
>> From: David Majnemer <[email protected]>
>> Date: Wed, Jun 8, 2011 at 11:59 PM
>> Subject: [cfe-commits] [PATCH] Improve diagnostics on missing expression
>> in switch statements
>> To: [email protected]
>>
>>
>> Hi,
>>
>> I think that clang's diagnostics for switch statements missing
>> expressions could be improved a little bit.
>> Attached is a patch that will move the diagnostic to right after the
>> colon and properly suggests to insert an empty expression.
>>
>> --
>> David Majnemer
>>
>> _______________________________________________
>> cfe-commits mailing list
>> [email protected]
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>>
>
>

Attachment: switch_case_label2.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to