diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-16 15:51:22 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-16 15:51:22 +0000 |
commit | 7b1170da73469d29c9be0584260764fe4f520872 (patch) | |
tree | 53b67e2635ec32ac0e4e9c285b59ec33419cd7c2 /include/clang/Basic/DiagnosticParseKinds.td | |
parent | fa842c73800d05dc44749c9aca9cbab5f8e2cbec (diff) | |
download | clang-7b1170da73469d29c9be0584260764fe4f520872.tar.gz clang-7b1170da73469d29c9be0584260764fe4f520872.tar.bz2 clang-7b1170da73469d29c9be0584260764fe4f520872.tar.xz |
[C++1z] Implement N4051: 'typename' is permitted instead of 'class' when declaring a template template parameter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticParseKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticParseKinds.td | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index 392c9a7a1a..e874c8d9a7 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -566,6 +566,13 @@ def err_expected_comma_greater : Error< "expected ',' or '>' in template-parameter-list">; def err_class_on_template_template_param : Error< "template template parameter requires 'class' after the parameter list">; +def ext_template_template_param_typename : ExtWarn< + "template template parameter using 'typename' is a C++1z extension">, + InGroup<CXX1z>; +def warn_cxx1y_compat_template_template_param_typename : Warning< + "template template parameter using 'typename' is " + "incompatible with C++ standards before C++1z">, + InGroup<CXXPre1zCompat>, DefaultIgnore; def err_template_spec_syntax_non_template : Error< "identifier followed by '<' indicates a class template specialization but " "%0 %select{does not refer to a template|refers to a function template|" |