Issue 140439
Summary Clang-Tidy 19 incorrectly replaces std::expected with std::unexpected
Labels clang-tidy
Assignees
Reporter magnesj
    The following line in ResInsight is incorrectly updated by clang-tidy-19

`std::expected<caf::PdmObjectHandle, QString> result = method->execute();`
is changed to 
`std::unexpected<caf::PdmObjectHandle, QString> result = method->execute();`

Using `auto result = method->execute();` works correct without any issues.

https://github.com/OPM/ResInsight/blob/7899736f0501f742e45e6dd6022e75136251a6bd/GrpcInterface/RiaGrpcPdmObjectService.cpp#L556
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to