================
@@ -177,6 +177,27 @@ static auto isPointerComparisonOperatorCall(std::string 
operator_name) {
                             pointee(anyOf(statusOrType(), statusType())))))));
 }
 
+static auto isStatusOrValueAssignmentCall() {
+  using namespace ::clang::ast_matchers; // NOLINT: Too many names
+  return cxxOperatorCallExpr(
+      hasOverloadedOperatorName("="),
+      callee(cxxMethodDecl(ofClass(statusOrClass()))),
+      hasArgument(1, anyOf(hasType(hasUnqualifiedDesugaredType(
+                               type(equalsBoundNode("T")))),
+                           nullPointerConstant())));
----------------
fmayer wrote:

added comment for now. we can revisit improving this

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

Reply via email to