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

Howard Hinnant hhinnant at apple.com
Thu Dec 23 07:55:58 PST 2010


On Dec 23, 2010, at 3:34 AM, Sebastian Redl wrote:

> 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.

Another approach to "SmallContainer":

http://home.roadrunner.com/~hinnant/stack_alloc.html

-Howard





More information about the cfe-commits mailing list