diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-10-04 15:41:53 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-10-04 15:41:53 +0000 |
commit | 3b8b00b1ec3d26d57157f9ed5004adad78e28535 (patch) | |
tree | 449266d818e2ff58db8e7e041c522686f6aa2eb7 | |
parent | ef48e053f98391d3df2818307160de16988227a5 (diff) |
Place diagnostic ext_predef_outside_function under a -W flag. Fixes <rdar://problem/10226192>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141087 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 3 | ||||
-rw-r--r-- | test/Misc/warning-flags.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 8d4ea8d610..434855ffa9 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -23,7 +23,8 @@ def ext_expr_not_ice : Extension< // Semantic analysis of constant literals. def ext_predef_outside_function : Warning< - "predefined identifier is only valid inside function">; + "predefined identifier is only valid inside function">, + InGroup<DiagGroup<"predefined-identifier-outside-function">>; def warn_float_overflow : Warning< "magnitude of floating-point constant too large for type %0; maximum is %1">, InGroup<LiteralRange>; diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 6ee27f84fa..1099effba8 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -17,7 +17,7 @@ This test serves two purposes: The list of warnings below should NEVER grow. It should gradually shrink to 0. -CHECK: Warnings without flags (304): +CHECK: Warnings without flags (303): CHECK-NEXT: backslash_newline_space CHECK-NEXT: charize_microsoft_ext CHECK-NEXT: ext_anon_param_requires_type_specifier @@ -81,7 +81,6 @@ CHECK-NEXT: ext_pp_include_next_directive CHECK-NEXT: ext_pp_line_too_big CHECK-NEXT: ext_pp_macro_redef CHECK-NEXT: ext_pp_warning_directive -CHECK-NEXT: ext_predef_outside_function CHECK-NEXT: ext_return_has_void_expr CHECK-NEXT: ext_subscript_non_lvalue CHECK-NEXT: ext_template_arg_extra_parens |