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)
commitb1885425c4adbb2baa09d90fe9c20d261759366e
treee5402957b39ec681f3e3edb77fa72a1f3e8cb52f
parenta59ef5795d884d39acd471cb71ee7ba93abc5e79
c: warn when an integer value comparison with an
integral expression have the obvious result.
Patch reviewed by John McCall off line.
// rdar://12202422

llvm-svn: 164143
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/Analysis/additive-folding.cpp
clang/test/Sema/compare.c
clang/test/Sema/outof-range-constant-compare.c [new file with mode: 0644]
clang/test/SemaCXX/compare.cpp
clang/test/SemaCXX/for-range-examples.cpp
clang/test/SemaCXX/warn-enum-compare.cpp