From: Matthias Braun Date: Tue, 27 Sep 2016 23:44:38 +0000 (+0000) Subject: Put new warning in a diagnostic group. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98e2f4b967cf9f9be5a443356d0be22d93ef935d;p=clang Put new warning in a diagnostic group. 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 --- diff --git a/include/clang/Basic/DiagnosticFrontendKinds.td b/include/clang/Basic/DiagnosticFrontendKinds.td index 6be2f39186..06c2ceff5c 100644 --- a/include/clang/Basic/DiagnosticFrontendKinds.td +++ b/include/clang/Basic/DiagnosticFrontendKinds.td @@ -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>; def err_fe_no_pch_in_dir : Error< "no suitable precompiled header file found in directory '%0'">; def err_fe_action_not_available : Error< diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 1a216d59ef..69e820542a 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -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