================
@@ -115,6 +115,18 @@ static bool isSupportedOptionalType(QualType Ty) {
   return Optional != nullptr;
 }
 
+static bool isAssertionResultType(QualType Type) {
+  if (Type.isNull())
+    return false;
+
+  if (auto *RD = Type->getAsRecordDecl())
----------------
vbvictor wrote:

nit: it could be
`auto *RD = Type->getAsRecordDecl(); RD && RD->getName() == "AssertionResult"` 
to reduce nesting

https://github.com/llvm/llvm-project/pull/186363
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to