[PATCH] D13157: Teach -Wtautological-overlap-compare about enums
George Burgess IV via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 22:54:21 PDT 2015
george.burgess.iv created this revision.
george.burgess.iv added a reviewer: rtrieu.
george.burgess.iv added a subscriber: cfe-commits.
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 :)
http://reviews.llvm.org/D13157
Files:
lib/Analysis/CFG.cpp
test/Sema/warn-overlap.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13157.35700.patch
Type: text/x-patch
Size: 6640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150925/9936073b/attachment.bin>
More information about the cfe-commits
mailing list