================
@@ -454,10 +454,29 @@ bool isPtrConversion(const FunctionDecl *F) {
return false;
}
-bool isNoDeleteFunction(const FunctionDecl *F) {
+static bool isNoDeleteFunctionDecl(const FunctionDecl *F) {
return typeAnnotationForReturnType(F) == WebKitAnnotation::NoDelete;
}
+bool isNoDeleteFunction(const FunctionDecl *F) {
+ if (llvm::any_of(F->redecls(), isNoDeleteFunctionDecl))
----------------
rniwa wrote:
But in that regard, we also want to check all superclass' method declarations
as well though. So I think `isNoDeleteFunction` is the one we wanna call
instead of `isNoDeleteFunction`.
https://github.com/llvm/llvm-project/pull/183970
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits