Currently, -Wtautological-overlap-compare only emits warnings if the comparisons are between integer literals and variables. This patch adds support for comparison between variables and enums if the user's intent seems moderately obvious.
Richard -- I chose you for review because it looks like you touched the code last. If you're busy, I'm happy to petition others :)
Why is this a lambda instead of a helper function?