def FormatExtraArgs : DiagGroup<"format-extra-args">;
def Format : DiagGroup<"format", [FormatExtraArgs]>;
-def Format2 : DiagGroup<"format=2", [Format]>;
def FormatNonLiteral : DiagGroup<"format-nonliteral", [Format]>;
def FormatSecurity : DiagGroup<"format-security", [Format]>;
-def : DiagGroup<"format-y2k", [Format]>;
+def FormatY2K : DiagGroup<"format-y2k", [Format]>;
+def Format2 : DiagGroup<"format=2",
+ [FormatNonLiteral, FormatSecurity, FormatY2K]>;
def FourByteMultiChar : DiagGroup<"four-char-constants">;
-
-
def : DiagGroup<"init-self">;
def : DiagGroup<"inline">;
def : DiagGroup<"int-to-pointer-cast">;
def warn_printf_insufficient_data_args : Warning<
"more '%%' conversions than data arguments">;
def warn_printf_too_many_data_args : Warning<
- "more data arguments than '%%' conversions">;
+ "more data arguments than '%%' conversions">, InGroup<FormatExtraArgs>;
def warn_printf_invalid_conversion : Warning<"invalid conversion '%0'">;
def warn_printf_missing_format_string : Warning<"format string missing">;
def warn_printf_empty_format_string : Warning<"format string is empty">;