Skip to content

Commit 97206d5

Browse files
author
Zachary Turner
committedMay 12, 2017
Rename Error -> Status.
This renames the LLDB error class to Status, as discussed on the lldb-dev mailing list. A change of this magnitude cannot easily be done without find and replace, but that has potential to catch unwanted occurrences of common strings such as "Error". Every effort was made to find all the obvious things such as the word "Error" appearing in a string, etc, but it's possible there are still some lingering occurences left around. Hopefully nothing too serious. llvm-svn: 302872
1 parent 3086b45 commit 97206d5

File tree

655 files changed

+5887
-5772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

655 files changed

+5887
-5772
lines changed
 

‎lldb/include/lldb/API/SBError.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ class LLDB_API SBError {
6868
friend class SBBreakpoint;
6969
friend class SBBreakpointLocation;
7070

71-
lldb_private::Error *get();
71+
lldb_private::Status *get();
7272

73-
lldb_private::Error *operator->();
73+
lldb_private::Status *operator->();
7474

75-
const lldb_private::Error &operator*() const;
75+
const lldb_private::Status &operator*() const;
7676

77-
lldb_private::Error &ref();
77+
lldb_private::Status &ref();
7878

79-
void SetError(const lldb_private::Error &lldb_error);
79+
void SetError(const lldb_private::Status &lldb_error);
8080

8181
private:
82-
std::unique_ptr<lldb_private::Error> m_opaque_ap;
82+
std::unique_ptr<lldb_private::Status> m_opaque_ap;
8383

8484
void CreateIfNeeded();
8585
};

‎lldb/include/lldb/API/SBPlatform.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ class LLDB_API SBPlatform {
156156
void SetSP(const lldb::PlatformSP &platform_sp);
157157

158158
SBError ExecuteConnected(
159-
const std::function<lldb_private::Error(const lldb::PlatformSP &)> &func);
159+
const std::function<lldb_private::Status(const lldb::PlatformSP &)>
160+
&func);
160161

161162
lldb::PlatformSP m_opaque_sp;
162163
};

0 commit comments

Comments
 (0)
Please sign in to comment.