JonasToth added a comment.

Informationen my part think that both switch and else should stay here for now. 
Running it over llvm gave really a lot of warnings, and that a rather good 
codebase.

The check did not recognize logic, your example would be warned against. I 
don't see a way to implement something like that here, that would require 
condition solving and so on.

In general, this check is more about defensive programming and therefore 
clang-tidy a good place.


https://reviews.llvm.org/D37808



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to