Rename -Wbad-literal to -Wliteral-range.

llvm-svn: 97968
This commit is contained in:
John McCall 2010-03-08 19:34:43 +00:00
parent f11976538e
commit 0fbf039db9
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,6 @@ def AddressOfTemporary : DiagGroup<"address-of-temporary">;
def : DiagGroup<"aggregate-return">;
def : DiagGroup<"attributes">;
def : DiagGroup<"bad-function-cast">;
def BadLiteral : DiagGroup<"bad-literal">;
def : DiagGroup<"c++-compat">;
def : DiagGroup<"cast-align">;
def : DiagGroup<"cast-qual">;
@ -49,6 +48,7 @@ def : DiagGroup<"init-self">;
def : DiagGroup<"inline">;
def : DiagGroup<"int-to-pointer-cast">;
def : DiagGroup<"invalid-pch">;
def LiteralRange : DiagGroup<"literal-range">;
def MissingBraces : DiagGroup<"missing-braces">;
def : DiagGroup<"missing-declarations">;
def : DiagGroup<"missing-format-attribute">;
@ -183,4 +183,4 @@ def : DiagGroup<"comments", [Comment]>; // -Wcomments = -Wcomment
// A warning group for warnings that we want to have on by default in clang,
// but which aren't on by default in GCC.
def NonGCC : DiagGroup<"non-gcc",
[SignCompare, Conversion, BadLiteral]>;
[SignCompare, Conversion, LiteralRange]>;

View File

@ -31,10 +31,10 @@ def ext_predef_outside_function : Warning<
"predefined identifier is only valid inside function">;
def warn_float_overflow : Warning<
"magnitude of floating-point constant too large for type %0; maximum is %1">,
InGroup<BadLiteral>;
InGroup<LiteralRange>;
def warn_float_underflow : Warning<
"magnitude of floating-point constant too small for type %0; minimum is %1">,
InGroup<BadLiteral>;
InGroup<LiteralRange>;
// C99 Designated Initializers
def err_array_designator_negative : Error<