================
@@ -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:
Should we ensure here that the parent of this parent is actually the TUDecl?
This way I think we would match: `my::internal::std::move` etc. I'd say it's
not too likely to have something like this...
https://github.com/llvm/llvm-project/pull/170820
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits