MCPcopy Create free account
hub / github.com/ablab/spades / expectedToErrorOr

Function expectedToErrorOr

ext/include/llvm/Support/Error.h:1144–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142
1143/// Convert an Expected<T> to an ErrorOr<T>.
1144template <typename T> ErrorOr<T> expectedToErrorOr(Expected<T> &&E) {
1145 if (auto Err = E.takeError())
1146 return errorToErrorCode(std::move(Err));
1147 return std::move(*E);
1148}
1149
1150/// This class wraps a string in an Error.
1151///

Callers

nothing calls this directly

Calls 2

errorToErrorCodeFunction · 0.85
takeErrorMethod · 0.45

Tested by

no test coverage detected