Displaying 4 results from an estimated 4 matches for "handleerror".
Did you mean:
handle_error
2019 Mar 22
2
[RFC] Upstream ObjCMetadata Reader Library
...sion of [5] for testing.
Here is an example how to use the library by extracting and printing the objc class names:
```
MachOMetadata ObjCInfo(InputObject);
if (auto ObjCClasses = ObjCInfo.classes()) {
for (auto c : *ObjCClasses) {
auto ObjCClass = *c;
if (!ObjCClass) {
handleError(ObjCClass.takeError());
continue;
}
auto name = ObjCClass->getName();
if (!name) {
handleError(name.takeError());
continue;
}
outs() << *name << "\n";
}
```
I am preparing a patch and will send out when it is ready. L...
2017 Jul 31
2
Test Error Paths for Expected & ErrorOr
...ver
untested parts of the code (any mutation that doesn't result in a test
failure is missing testing)) would probably find these, or maybe static
analysis.
Alternatively, if this technique were really embedded deep into
llvm::Error, then it could differentiate between the various handles in a
handleError - except I suppose it'd have no way of creating arbitrary
errors required to pass to them - maybe with some API entry point (give for
any T that is an ErrorInfo, have ErrorInfo::createTestStub or the like that
could be used). It'd be tricky, I'd imagine.
- Dave
>
> I will get b...
2007 Apr 20
15
Need help with something.
Hello, I need a way to send some script in a div or a form field to
the server,
have the server read it, then return the updated script to the div or
form field.
I can do the div and form field and such, I just need someone to
explain to me how to do this. Can this be done? Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2017 Jul 28
3
Test Error Paths for Expected & ErrorOr
Hi Stefan, David,
This is very interesting stuff - it adds a dimension of error security that
Error/Expected can't provide on their own. I think it would be interesting
to try to build a tool around this.
Did you identify many cases where "real work" (in your example, the nullptr
dereference" was being done in an error branch? My suspicion is that that
should be rare, but that