[cfe-dev] Patch: Add some semantic analysis to switch statements

Steve Naroff snaroff at apple.com
Tue Jul 17 17:35:37 PDT 2007


Thanks for the patch...looks great.

One comment and one question...

#1: Where is setSwitchStmt() called?

#2: Getters should be declared "const".


On Jul 17, 2007, at 4:30 PM, Anders Carlsson wrote:

> Hello,
> here's a patch that makes sure that that the switch condition  
> expression has an integer type, and also that a switch doesn't have  
> more than one default: label.
> Anders
> <textmate stdin 2NXjY6.txt>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

More information about the cfe-dev mailing list