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 origin/main HEAD --extensions cpp,h -- 
lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_riscv64.cpp 
lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_riscv64.h 
lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git 
a/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_riscv64.cpp 
b/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_riscv64.cpp
index 36f08a80d..e9c5c55e3 100644
--- 
a/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_riscv64.cpp
+++ 
b/lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_riscv64.cpp
@@ -456,7 +456,8 @@ Status NativeRegisterContextFreeBSD_riscv64::WriteRegister(
     return WriteFPR();
   }
 
-  return Status::FromErrorStringWithFormat("unsupported register type: %u", 
reg);
+  return Status::FromErrorStringWithFormat("unsupported register type: %u",
+                                           reg);
 }
 
 Status NativeRegisterContextFreeBSD_riscv64::ReadAllRegisterValues(
@@ -474,7 +475,8 @@ Status 
NativeRegisterContextFreeBSD_riscv64::ReadAllRegisterValues(
                             sizeof(RegisterInfoPOSIX_riscv64::FPR);
   data_sp = std::make_shared<DataBufferHeap>(total_size, 0);
   if (!data_sp || !data_sp->GetBytes())
-    return Status::FromErrorString("failed to allocate data buffer for 
POSIX-layout register data");
+    return Status::FromErrorString(
+        "failed to allocate data buffer for POSIX-layout register data");
 
   // Get pointers to GPR and FPR sections of buffer
   auto *gpr_dst =

``````````

</details>


https://github.com/llvm/llvm-project/pull/180549
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to