[cfe-commits] [PATCH] Fix diagnostic reporting of previous default statement.

Sebastian Redl sebastian.redl at getdesigned.at
Thu Dec 23 00:34:01 PST 2010

On 23.12.2010 06:25, sashan wrote:
> 2. Why was a home-brew list used to store the list of switch cases? I 
> would
> rather it used std::list. In fact I have another rough non-working patch that
> replaces the list with std::set and when new switch cases are added they are
> inserted in source order because the set is declared with a functor that decides
> the source order of 2 switch cases.
Please read http://llvm.org/docs/ProgrammersManual.html#datastructure . 
Use the right datastructure. If you believe that something other than 
what is currently used is better, propose a patch.


More information about the cfe-commits mailing list