forked from OSchip/llvm-project
parent
f11976538e
commit
0fbf039db9
|
@ -24,7 +24,6 @@ def AddressOfTemporary : DiagGroup<"address-of-temporary">;
|
||||||
def : DiagGroup<"aggregate-return">;
|
def : DiagGroup<"aggregate-return">;
|
||||||
def : DiagGroup<"attributes">;
|
def : DiagGroup<"attributes">;
|
||||||
def : DiagGroup<"bad-function-cast">;
|
def : DiagGroup<"bad-function-cast">;
|
||||||
def BadLiteral : DiagGroup<"bad-literal">;
|
|
||||||
def : DiagGroup<"c++-compat">;
|
def : DiagGroup<"c++-compat">;
|
||||||
def : DiagGroup<"cast-align">;
|
def : DiagGroup<"cast-align">;
|
||||||
def : DiagGroup<"cast-qual">;
|
def : DiagGroup<"cast-qual">;
|
||||||
|
@ -49,6 +48,7 @@ def : DiagGroup<"init-self">;
|
||||||
def : DiagGroup<"inline">;
|
def : DiagGroup<"inline">;
|
||||||
def : DiagGroup<"int-to-pointer-cast">;
|
def : DiagGroup<"int-to-pointer-cast">;
|
||||||
def : DiagGroup<"invalid-pch">;
|
def : DiagGroup<"invalid-pch">;
|
||||||
|
def LiteralRange : DiagGroup<"literal-range">;
|
||||||
def MissingBraces : DiagGroup<"missing-braces">;
|
def MissingBraces : DiagGroup<"missing-braces">;
|
||||||
def : DiagGroup<"missing-declarations">;
|
def : DiagGroup<"missing-declarations">;
|
||||||
def : DiagGroup<"missing-format-attribute">;
|
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,
|
// A warning group for warnings that we want to have on by default in clang,
|
||||||
// but which aren't on by default in GCC.
|
// but which aren't on by default in GCC.
|
||||||
def NonGCC : DiagGroup<"non-gcc",
|
def NonGCC : DiagGroup<"non-gcc",
|
||||||
[SignCompare, Conversion, BadLiteral]>;
|
[SignCompare, Conversion, LiteralRange]>;
|
||||||
|
|
|
@ -31,10 +31,10 @@ def ext_predef_outside_function : Warning<
|
||||||
"predefined identifier is only valid inside function">;
|
"predefined identifier is only valid inside function">;
|
||||||
def warn_float_overflow : Warning<
|
def warn_float_overflow : Warning<
|
||||||
"magnitude of floating-point constant too large for type %0; maximum is %1">,
|
"magnitude of floating-point constant too large for type %0; maximum is %1">,
|
||||||
InGroup<BadLiteral>;
|
InGroup<LiteralRange>;
|
||||||
def warn_float_underflow : Warning<
|
def warn_float_underflow : Warning<
|
||||||
"magnitude of floating-point constant too small for type %0; minimum is %1">,
|
"magnitude of floating-point constant too small for type %0; minimum is %1">,
|
||||||
InGroup<BadLiteral>;
|
InGroup<LiteralRange>;
|
||||||
|
|
||||||
// C99 Designated Initializers
|
// C99 Designated Initializers
|
||||||
def err_array_designator_negative : Error<
|
def err_array_designator_negative : Error<
|
||||||
|
|
Loading…
Reference in New Issue