summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-07-13 21:13:05 +0000
committerLang Hames <lhames@gmail.com>2016-07-13 21:13:05 +0000
commitc2773e97d248c396636464de9726c04efe47bf03 (patch)
treed06cf695118c691289eabb963bdd2613836388c2 /lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp
parent02c15da062621032fbb9d72b73ee1996be9205ec (diff)
downloadbcm5719-llvm-c2773e97d248c396636464de9726c04efe47bf03.tar.gz
bcm5719-llvm-c2773e97d248c396636464de9726c04efe47bf03.zip
[Object] Change Archive::child_iterator for better interop with Error/Expected.
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud