On Jul 18, 2012, at 6:34 PM, Richard Trieu <[email protected]> wrote:

> A set could work for detecting the values, but both EnumConstantDecls are 
> needed for the diagnostic, not just the values.  Possibly a map from 
> APSInt->EnumConstantDecl* would work.  But either way, I would be dealing 
> with getting APSInts to play nice with each other.

That seems reasonable to me.  The primary performance issue I see is the 
quadratic algorithmic complexity.  If the APSInt comparisons are an issue, we 
can see if we can find ways to optimize that further.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to