================
@@ -255,6 +255,26 @@ template <typename T> static bool
isRecordWithAttr(QualType Type) {
bool isGslPointerType(QualType QT) { return isRecordWithAttr<PointerAttr>(QT);
}
bool isGslOwnerType(QualType QT) { return isRecordWithAttr<OwnerAttr>(QT); }
+static bool isStdUniquePtr(const CXXRecordDecl *RD) {
+ if (!RD || !RD->isInStdNamespace())
+ return false;
+
+ StringRef Name;
----------------
Xazax-hun wrote:
I see this pattern to get the name of a class repeated. Should we have a small
helper somewhere?
https://github.com/llvm/llvm-project/pull/180230
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits