]> granicus.if.org Git - clang/commit
Split out -Wconversion warnings about constant precision into their
authorJohn McCall <rjmccall@apple.com>
Tue, 9 Nov 2010 22:22:12 +0000 (22:22 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 9 Nov 2010 22:22:12 +0000 (22:22 +0000)
commit091f23f1d6d4bcffd6641cda72a6831e08c02ea7
tree68b3412e591456abb9639ef22cf2d705511b5db1
parent73167ec561c1dc3f34cbca2287c83985cbf2bfdf
Split out -Wconversion warnings about constant precision into their
own subcategory, -Wconstant-conversion, which is on by default.

Tweak the constant folder to give better results in the invalid
case of a negative shift amount.

Implements rdar://problem/6792488

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118636 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/ExprConstant.cpp
lib/Sema/SemaChecking.cpp
test/Lexer/constants.c
test/Preprocessor/pushable-diagnostics.c
test/Sema/constant-conversion.c [new file with mode: 0644]
test/Sema/conversion.c