]> granicus.if.org Git - clang/commitdiff
Add -Wtypename-missing flag for diagnostic warn_typename_missing.
authorTed Kremenek <kremenek@apple.com>
Fri, 12 Aug 2011 20:46:45 +0000 (20:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 12 Aug 2011 20:46:45 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137505 91177308-0d34-0410-b5e6-96231b3b80d8

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

index bccf4c35beeef0dbedc4e269a4154f9d875080c4..e7b20144b4f8b15e752300916dc61db853660bb0 100644 (file)
@@ -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<DiagGroup<"typename-missing">>;
 def ext_typename_outside_of_template : ExtWarn<
   "'typename' occurs outside of a template">, InGroup<CXX0x>;
 def err_typename_refers_to_using_value_decl : Error<
index 27e53b9c71b6440383cc3d9bf95f90850beb882e..4a34792300e09186aa37f97702a73db370b9e325 100644 (file)
@@ -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