[clang] [Clang] disallow the use of asterisks preceding constructor and destructor names (PR #122621)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 07:05:33 PST 2025
================
@@ -2223,6 +2225,8 @@ def err_destructor_not_member : Error<
def err_destructor_cannot_be : Error<"destructor cannot be declared '%0'">;
def err_invalid_qualified_destructor : Error<
"'%0' qualifier is not allowed on a destructor">;
+def err_invalid_destructor_decl : Error<
----------------
erichkeane wrote:
IMO, we should 'combined' the two diagnostics into `err_invalid_ctor_dtor_decl : Error<"invalid %select{constructor|destructor}0 declaration>`
https://github.com/llvm/llvm-project/pull/122621
More information about the cfe-commits
mailing list