[clang] [RFC] Initial implementation of P2719 (PR #113510)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 29 16:13:44 PDT 2025
================
@@ -16298,6 +16396,70 @@ bool Sema::CompleteConstructorCall(CXXConstructorDecl *Constructor,
return Invalid;
}
+bool Sema::isTypeAwareOperatorNewOrDelete(const NamedDecl *ND) const {
+ const FunctionDecl *FnDecl = nullptr;
+ if (auto *FTD = dyn_cast<FunctionTemplateDecl>(ND))
+ FnDecl = FTD->getTemplatedDecl();
+ else if (auto *FD = dyn_cast<FunctionDecl>(ND))
+ FnDecl = FD;
+
----------------
ojhunt wrote:
Now that I know about getAsFunction() I've just removed this helper method :D
https://github.com/llvm/llvm-project/pull/113510
More information about the cfe-commits
mailing list