llvm-project/lldb/scripts/Python
Lawrence D'Anna 2fce1137c7 Convert FileSystem::Open() to return Expected<FileUP>
Summary:
This patch converts FileSystem::Open from this prototype:

Status
Open(File &File, const FileSpec &file_spec, ...);

to this one:

llvm::Expected<std::unique_ptr<File>>
Open(const FileSpec &file_spec, ...);

This is beneficial on its own, as llvm::Expected is a more modern
and recommended error type than Status.  It is also a necessary step
towards https://reviews.llvm.org/D67891, and further developments
for lldb_private::File.

Reviewers: JDevlieghere, jasonmolenda, labath

Reviewed By: labath

Subscribers: mgorny, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D67996

llvm-svn: 373003
2019-09-26 17:54:59 +00:00
..
android Python 2/3 compatibility: from __future__ import print_function 2019-03-21 18:27:40 +00:00
finishSwigPythonLLDB.py
python-extensions.swig [Python] Implement __next__ for value_iter 2019-09-04 18:59:13 +00:00
python-swigsafecast.swig [Python] Update PyString_FromString() to work for python 2 and 3. 2019-01-09 22:52:47 +00:00
python-typemaps.swig Convert FileSystem::Open() to return Expected<FileUP> 2019-09-26 17:54:59 +00:00
python-wrapper.swig [Python] Update PyString_FromString() to work for python 2 and 3. 2019-01-09 22:52:47 +00:00
remote-build.py
use_lldb_suite.py