https://github.com/rnk commented:

I'm OK with this, but I feel like this is creating scope creep. Now we have a 
special Wdeprecated-declarations carveouts for switches, but if you unpack the 
switch into if / else chain comparisons, you get deprecation warnings. Should 
we disable deprecation warnings that directly compare enumerators? I wouldn't 
want to expand scope that much.

It is possible to write code that avoids mentioning the deprecated enum (add a 
default, and/or fallthrough code) and silences -Wreturn-type, so I have a soft 
preference for going back to the old version.

https://github.com/llvm/llvm-project/pull/138562
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to