Update the message for template-template param keyword for C++17
authorErich Keane <erich.keane@intel.com>
Mon, 27 Sep 2021 20:16:03 +0000 (13:16 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 28 Sep 2021 13:02:29 +0000 (06:02 -0700)
commit45e75d93821f7e4f04d9f42cb19f729b346e7c0c
tree95d4d9d55d39f5b3f558777e355251cefc57563b
parent7866dbb261240f71c79e70d2ed52351846f795cd
Update the message for template-template param keyword for C++17

C++17 permits using 'typename' or 'class' for a template template
parameter, but the error message in the parser only refers to 'class'.
This patch, in C++17 or newer modes, adds "or 'template'" to the
diagnostic.
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/lib/Parse/ParseTemplate.cpp
clang/test/Parser/cxx-template-decl.cpp
clang/test/Parser/cxx2a-concept-declaration.cpp