smeenai added a comment.

I'm thinking you could account for all possible type sizes in the existing 
(enabled by default) warning, and have a different warning for possibly 
tautological comparisons. E.g. if a `long` is being compared against `INT_MAX`, 
you know that's only tautological on some platforms, so it should go under 
`-Wpossible-tautological-constant-compare` (which would only be enabled by 
`-Weverything` and not `-Wall` or `-Wextra`); `-Wtautological-constant-compare` 
should be reserved for definitely tautological cases.


https://reviews.llvm.org/D39149



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

Reply via email to