================
@@ -285,6 +285,18 @@ static bool isContainerOfPointer(const RecordDecl 
*Container) {
   }
   return false;
 }
+static bool isContainerOfOwner(const RecordDecl *Container) {
+  if (const auto *CTSD =
+          dyn_cast_if_present<ClassTemplateSpecializationDecl>(Container)) {
----------------
usx95 wrote:

nit: use early return to reduce nesting.
```
const auto *CTSD =
          dyn_cast_if_present<ClassTemplateSpecializationDecl>(Container);
if (!CTSD) return;
```

https://github.com/llvm/llvm-project/pull/108344
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to