[clang] [Clang] [C++26] Implement P2573R2: `= delete("should have a reason");` (PR #86526)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 10 01:00:50 PDT 2024
================
@@ -709,6 +712,11 @@ void ODRHash::AddFunctionDecl(const FunctionDecl *Function,
return;
}
+ if (DeletedMessage) {
+ ID.AddString(DeletedMessage->getBytes());
+ return;
+ }
+
----------------
Sirraide wrote:
> (there is a question of whether isExplicitlyDefaulted/isDeletedAsWritten should be after skip body, but that seems logical as is, and at worse it would be pre-existing)
Yeah, that’s true; considering those are already always included it makes sense to always include the message as well if it exists.
https://github.com/llvm/llvm-project/pull/86526
More information about the cfe-commits
mailing list