]> granicus.if.org Git - clang/commitdiff
Put new warning in a diagnostic group.
authorMatthias Braun <matze@braunis.de>
Tue, 27 Sep 2016 23:44:38 +0000 (23:44 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 27 Sep 2016 23:44:38 +0000 (23:44 +0000)
The warning I added in r282426 should be a diagnostic group.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282557 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticFrontendKinds.td
test/Misc/warning-flags.c

index 6be2f391863af09ce5b9c9e5ee4e39113ddb1626..06c2ceff5c7285803b45e663639769fa802c8efd 100644 (file)
@@ -108,7 +108,8 @@ def warn_fe_cc_print_header_failure : Warning<
 def warn_fe_cc_log_diagnostics_failure : Warning<
     "unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
 def warn_fe_unable_to_open_stats_file : Warning<
-    "unable to open statistics output file '%0': '%1'">;
+    "unable to open statistics output file '%0': '%1'">,
+    InGroup<DiagGroup<"unable-to-open-stats-file">>;
 def err_fe_no_pch_in_dir : Error<
     "no suitable precompiled header file found in directory '%0'">;
 def err_fe_action_not_available : Error<
index 1a216d59efe2c02ef47791258a9201e2001470ea..69e820542ab71b416f5f859c2c253ba3aebcaf0b 100644 (file)
@@ -18,7 +18,7 @@ This test serves two purposes:
 
 The list of warnings below should NEVER grow.  It should gradually shrink to 0.
 
-CHECK: Warnings without flags (85):
+CHECK: Warnings without flags (84):
 CHECK-NEXT:   ext_excess_initializers
 CHECK-NEXT:   ext_excess_initializers_in_char_array_initializer
 CHECK-NEXT:   ext_expected_semi_decl_list
@@ -66,7 +66,6 @@ CHECK-NEXT:   warn_extraneous_char_constant
 CHECK-NEXT:   warn_fe_cc_log_diagnostics_failure
 CHECK-NEXT:   warn_fe_cc_print_header_failure
 CHECK-NEXT:   warn_fe_macro_contains_embedded_newline
-CHECK-NEXT:   warn_fe_unable_to_open_stats_file
 CHECK-NEXT:   warn_file_asm_volatile
 CHECK-NEXT:   warn_ignoring_ftabstop_value
 CHECK-NEXT:   warn_implements_nscopying