================
@@ -185,6 +185,15 @@ bool isCtorOfSafePtr(const clang::FunctionDecl *F) {
isCtorOfRetainPtrOrOSPtr(F);
}
+bool isStdOrWTFMove(const clang::FunctionDecl *F) {
+ auto FnName = safeGetName(F);
+ auto *Namespace = F->getParent();
+ if (!Namespace)
+ return false;
+ auto NsName = safeGetName(Namespace);
+ return (NsName == "WTF" || NsName == "std") && FnName == "move";
+}
----------------
steakhal wrote:
Have you considered using isa_and_nonnull? Fusing the disjunction?
https://github.com/llvm/llvm-project/pull/170820
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits