[llvm-branch-commits] [FlowSensitive] [StatusOr] [14/N] Support nested StatusOrs (PR #170950)

Jan Voung via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 10 09:11:06 PST 2025


================
@@ -1130,6 +1150,10 @@ buildTransferMatchSwitch(ASTContext &Ctx,
                                           transferValueAssignmentCall)
       .CaseOfCFGStmt<CXXConstructExpr>(isStatusOrValueConstructor(),
                                        transferValueConstructor)
+      .CaseOfCFGStmt<CallExpr>(isStatusOrOperatorCallWithName("->"),
----------------
jvoung wrote:

nit: could use .CaseOfCFGStmt<CXXOperatorCallExpr> to be more specific?

https://github.com/llvm/llvm-project/pull/170950


More information about the llvm-branch-commits mailing list