From 8ed72530ce7c3bd6bb1dceaf8108fbeddde80e4e Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 12 Aug 2011 20:46:45 +0000 Subject: [PATCH] Add -Wtypename-missing flag for diagnostic warn_typename_missing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137505 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 3 ++- 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 bccf4c35be..e7b20144b4 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2232,7 +2232,8 @@ def note_typename_refers_here : Note< def err_typename_missing : Error< "missing 'typename' prior to dependent type name '%0%1'">; def warn_typename_missing : ExtWarn< - "missing 'typename' prior to dependent type name '%0%1'">; + "missing 'typename' prior to dependent type name '%0%1'">, + InGroup>; def ext_typename_outside_of_template : ExtWarn< "'typename' occurs outside of a template">, InGroup; def err_typename_refers_to_using_value_decl : Error< diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 27e53b9c71..4a34792300 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 (317): +CHECK: Warnings without flags (316): CHECK-NEXT: auto_storage_class CHECK-NEXT: backslash_newline_space CHECK-NEXT: charize_microsoft_ext @@ -318,7 +318,6 @@ CHECK-NEXT: warn_transparent_union_nonpointer CHECK-NEXT: warn_typecheck_cond_incompatible_pointers CHECK-NEXT: warn_typecheck_cond_pointer_integer_mismatch CHECK-NEXT: warn_typecheck_function_qualifiers -CHECK-NEXT: warn_typename_missing CHECK-NEXT: warn_ucn_escape_too_large CHECK-NEXT: warn_ucn_not_valid_in_c89 CHECK-NEXT: warn_unavailable_fwdclass_message -- 2.40.0