[Lldb-commits] [lldb] The _code field in an NSError is signed, not unsigned. (PR #119764)

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 12 13:27:30 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c047a5b3f6e2295dd74f1e8f17f1a023150b246c b41b19c7b9bf5a784914e662b7485ac96c2ccdc4 --extensions cpp -- lldb/source/Plugins/Language/ObjC/NSError.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Plugins/Language/ObjC/NSError.cpp b/lldb/source/Plugins/Language/ObjC/NSError.cpp
index 389ff5a7ed..bb54044ae1 100644
--- a/lldb/source/Plugins/Language/ObjC/NSError.cpp
+++ b/lldb/source/Plugins/Language/ObjC/NSError.cpp
@@ -67,7 +67,7 @@ bool lldb_private::formatters::NSError_SummaryProvider(
 
   Status error;
   int64_t code = process_sp->ReadSignedIntegerFromMemory(code_location,
-                                                            ptr_size, 0, error);
+                                                         ptr_size, 0, error);
   if (error.Fail())
     return false;
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/119764


More information about the lldb-commits mailing list