| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 275361
|
|
|
|
|
|
| |
Should fix the bots broken by r275316.
llvm-svn: 275353
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See http://reviews.llvm.org/D22079
Changes the Archive::child_begin and Archive::children to require a reference
to an Error. If iterator increment fails (because the archive header is
damaged) the iterator will be set to 'end()', and the error stored in the
given Error&. The Error value should be checked by the user immediately after
the loop. E.g.:
Error Err;
for (auto &C : A->children(Err)) {
// Do something with archive child C.
}
// Check the error immediately after the loop.
if (Err)
return Err;
Failure to check the Error will result in an abort() when the Error goes out of
scope (as guaranteed by the Error class).
llvm-svn: 275316
|
|
|
|
|
|
| |
than a const string&.
llvm-svn: 274526
|
|
|
|
|
|
|
|
|
| |
This will be needed in order to consistently return an Error
to clients of the API being developed in D20268.
Differential Revision: http://reviews.llvm.org/D20550
llvm-svn: 270967
|
|
|
|
|
|
|
| |
Based on a totally scientific, 30 second google search "in-" appears to be the
preferred prefix.
llvm-svn: 270950
|
|
|
|
|
|
|
|
| |
StringError can be used to represent Errors that aren't recoverable based on
the error type, but that have a useful error message that can be reported to
the user or logged.
llvm-svn: 270948
|
|
|
|
|
|
|
|
| |
This helps make clear that we're moving away from std::error_code.
Differential Revision: http://reviews.llvm.org/D20592
llvm-svn: 270604
|
|
|
|
|
|
| |
This implements my suggestion to Lang.
llvm-svn: 264360
|
|
|
|
| |
llvm-svn: 264293
|
|
|
|
| |
llvm-svn: 264291
|
|
This is a temporary crutch to enable code that currently uses std::error_code
to be incrementally moved over to Error. Requiring all Error instances be
convertible enables clients to call errorToErrorCode on any error (not just
ECErrors created by conversion *from* an error_code).
This patch also moves code for Error from ErrorHandling.cpp into a new
Error.cpp file.
llvm-svn: 264221
|