[Lldb-commits] [lldb] [lldb][Windows] Format in-process x86 and x64 GPRs as lowercase hex (PR #227299)

via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 29 05:56:55 PDT 2026


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 -- lldb/source/Plugins/Process/Windows/Common/x64/RegisterContextWindows_x64.cpp lldb/source/Plugins/Process/Windows/Common/x86/RegisterContextWindows_x86.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/Windows/Common/x64/RegisterContextWindows_x64.cpp b/lldb/source/Plugins/Process/Windows/Common/x64/RegisterContextWindows_x64.cpp
index ae1e7a47e..edeec0111 100644
--- a/lldb/source/Plugins/Process/Windows/Common/x64/RegisterContextWindows_x64.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/x64/RegisterContextWindows_x64.cpp
@@ -26,12 +26,19 @@ using namespace lldb;
 using namespace lldb_private;
 
 #define DEFINE_GPR(reg, alt, generic)                                          \
-{                                                                              \
-  #reg, alt, 8, 0, eEncodingUint, eFormatHex,                                  \
+  {                                                                            \
+      #reg,                                                                    \
+      alt,                                                                     \
+      8,                                                                       \
+      0,                                                                       \
+      eEncodingUint,                                                           \
+      eFormatHex,                                                              \
       {dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, generic,                    \
-        LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 },                            \
-        nullptr, nullptr, nullptr,                                             \
-}
+       LLDB_INVALID_REGNUM, lldb_##reg##_x86_64},                              \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+  }
 
 #define DEFINE_GPR_BIN(reg, alt) #reg, alt, 8, 0, eEncodingUint, eFormatBinary
 #define DEFINE_FPU_XMM(reg)                                                    \
@@ -41,28 +48,49 @@ using namespace lldb_private;
       nullptr, nullptr, nullptr,
 
 #define DEFINE_GPR_PSEUDO_32(reg)                                              \
-{                                                                              \
-  #reg, nullptr, 4, 0, eEncodingUint, eFormatHex,                              \
+  {                                                                            \
+      #reg,                                                                    \
+      nullptr,                                                                 \
+      4,                                                                       \
+      0,                                                                       \
+      eEncodingUint,                                                           \
+      eFormatHex,                                                              \
       {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM,          \
-        LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 },                            \
-        nullptr, nullptr, nullptr,                                             \
-}
+       LLDB_INVALID_REGNUM, lldb_##reg##_x86_64},                              \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+  }
 
 #define DEFINE_GPR_PSEUDO_16(reg)                                              \
-{                                                                              \
-  #reg, nullptr, 2, 0, eEncodingUint, eFormatHex,                              \
+  {                                                                            \
+      #reg,                                                                    \
+      nullptr,                                                                 \
+      2,                                                                       \
+      0,                                                                       \
+      eEncodingUint,                                                           \
+      eFormatHex,                                                              \
       {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM,          \
-        LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 },                            \
-        nullptr, nullptr, nullptr,                                             \
-}
+       LLDB_INVALID_REGNUM, lldb_##reg##_x86_64},                              \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+  }
 
 #define DEFINE_GPR_PSEUDO_8(reg)                                               \
-{                                                                              \
-  #reg, nullptr, 1, 0, eEncodingUint, eFormatHex,                              \
+  {                                                                            \
+      #reg,                                                                    \
+      nullptr,                                                                 \
+      1,                                                                       \
+      0,                                                                       \
+      eEncodingUint,                                                           \
+      eFormatHex,                                                              \
       {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM,          \
-        LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 },                            \
-        nullptr, nullptr, nullptr,                                             \
-}
+       LLDB_INVALID_REGNUM, lldb_##reg##_x86_64},                              \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+      nullptr,                                                                 \
+  }
 
 namespace {
 

``````````

</details>


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


More information about the lldb-commits mailing list