mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 14:01:45 +00:00
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
This commit is contained in:
1 parent
3086b45a2f
commit
97206d5727
655 files changed
+5888
-5773
No files matched your search
@@ -57,7 +57,7 @@ public:
|
||||
valobj->GetAddressOf() +
|
||||
JavaASTContext::CalculateArrayElementOffset(type, idx);
|
||||
|
||||
Error error;
|
||||
Status error;
|
||||
size_t byte_size = element_type.GetByteSize(nullptr);
|
||||
DataBufferSP buffer_sp(new DataBufferHeap(byte_size, 0));
|
||||
size_t bytes_read = process_sp->ReadMemory(address, buffer_sp->GetBytes(),
|
||||
@@ -86,7 +86,7 @@ private:
|
||||
if (!m_backend.IsPointerOrReferenceType())
|
||||
return m_backend.GetSP();
|
||||
|
||||
Error error;
|
||||
Status error;
|
||||
return m_backend.Dereference(error);
|
||||
}
|
||||
};
|
||||
@@ -96,7 +96,7 @@ private:
|
||||
bool lldb_private::formatters::JavaStringSummaryProvider(
|
||||
ValueObject &valobj, Stream &stream, const TypeSummaryOptions &opts) {
|
||||
if (valobj.IsPointerOrReferenceType()) {
|
||||
Error error;
|
||||
Status error;
|
||||
ValueObjectSP deref = valobj.Dereference(error);
|
||||
if (error.Fail())
|
||||
return false;
|
||||
@@ -145,7 +145,7 @@ bool lldb_private::formatters::JavaStringSummaryProvider(
|
||||
bool lldb_private::formatters::JavaArraySummaryProvider(
|
||||
ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options) {
|
||||
if (valobj.IsPointerOrReferenceType()) {
|
||||
Error error;
|
||||
Status error;
|
||||
ValueObjectSP deref = valobj.Dereference(error);
|
||||
if (error.Fail())
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user