diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-08-12 20:46:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-08-12 20:46:45 +0000 |
commit | 8ed72530ce7c3bd6bb1dceaf8108fbeddde80e4e (patch) | |
tree | b8ce89e3a8a3b9c4e0611ab412192911f3b67144 | |
parent | 9697934650354bed2e509d8e7e44f21a1fb00f76 (diff) |
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
-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 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<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< 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 |