]> granicus.if.org Git - clang/commit
c: warn when an integer value comparison with an
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 18 Sep 2012 17:37:21 +0000 (17:37 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 18 Sep 2012 17:37:21 +0000 (17:37 +0000)
commit15a9356464f0809e1cb24aa3a7cc2577914ff5bb
tree74e1829ebc9eb58aaf648cad5e95dcd7ebe7d09a
parentf9361b504c14f50ffdd872710bc805f7259d200a
c: warn when an integer value comparison with an
integral expression have the obvious result.
Patch reviewed by John McCall off line.
// rdar://12202422

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164143 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Analysis/additive-folding.cpp
test/Sema/compare.c
test/Sema/outof-range-constant-compare.c [new file with mode: 0644]
test/SemaCXX/compare.cpp
test/SemaCXX/for-range-examples.cpp
test/SemaCXX/warn-enum-compare.cpp