[clang] [clang] deprecate alias, class templates without arg list after template kw (PR #94789)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 27 11:08:34 PDT 2024
================
@@ -891,6 +891,10 @@ def missing_template_arg_list_after_template_kw : Extension<
"a template argument list is expected after a name prefixed by the template "
"keyword">, InGroup<DiagGroup<"missing-template-arg-list-after-template-kw">>,
DefaultError;
+def warn_missing_template_arg_list_after_template_kw_deprecated : Warning<
+ "the use of the keyword template before the qualified name of a class or "
+ "alias template without a template argument list is deprecated">,
+ InGroup<DiagGroup<"warn-missing-template-arg-list-after-template-kw-deprecated-deprecated">>;
----------------
AaronBallman wrote:
I would name this group in `DiagnosticGroups.td` so that it can be added under the `-Wdeprecated` umbrella there.
https://github.com/llvm/llvm-project/pull/94789
More information about the cfe-commits
mailing list