[Lldb-commits] [lldb] [lldb/win] Fix -Wmissing-field-initializers warnings after 54981bb75d374 (PR #76255)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 22 09:26:48 PST 2023
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 04c473bea3e0f135432698fcaafab52e1fe1b5ec 7bd8eade99bbf2408a35462f1f4f643d9649efb3 -- lldb/source/Plugins/Process/Windows/Common/x64/RegisterContextWindows_x64.cpp
``````````
</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 fee485b759..3d32a3d58c 100644
--- a/lldb/source/Plugins/Process/Windows/Common/x64/RegisterContextWindows_x64.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/x64/RegisterContextWindows_x64.cpp
@@ -25,43 +25,43 @@ using namespace lldb;
using namespace lldb_private;
#define DEFINE_GPR(reg, alt, generic) \
-{ \
- #reg, alt, 8, 0, eEncodingUint, eFormatHexUppercase, \
- {dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, generic, \
- LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \
+ { \
+ #reg, alt, 8, 0, eEncodingUint, eFormatHexUppercase, \
+ {dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, generic, \
+ 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) \
#reg, NULL, 16, 0, eEncodingUint, eFormatVectorOfUInt64, \
- {dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, LLDB_INVALID_REGNUM, \
- LLDB_INVALID_REGNUM, lldb_##reg##_x86_64}, \
- nullptr, nullptr, nullptr,
+ {dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, LLDB_INVALID_REGNUM, \
+ LLDB_INVALID_REGNUM, lldb_##reg##_x86_64}, \
+ nullptr, nullptr, nullptr,
#define DEFINE_GPR_PSEUDO_32(reg) \
-{ \
- #reg, nullptr, 4, 0, eEncodingUint, eFormatHexUppercase, \
- {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, \
- LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \
+ { \
+ #reg, nullptr, 4, 0, eEncodingUint, eFormatHexUppercase, \
+ {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, \
+ LLDB_INVALID_REGNUM, lldb_##reg##_x86_64}, \
nullptr, nullptr, nullptr, \
-}
+ }
#define DEFINE_GPR_PSEUDO_16(reg) \
-{ \
- #reg, nullptr, 2, 0, eEncodingUint, eFormatHexUppercase, \
- {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, \
- LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \
+ { \
+ #reg, nullptr, 2, 0, eEncodingUint, eFormatHexUppercase, \
+ {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, \
+ LLDB_INVALID_REGNUM, lldb_##reg##_x86_64}, \
nullptr, nullptr, nullptr, \
-}
+ }
#define DEFINE_GPR_PSEUDO_8(reg) \
-{ \
- #reg, nullptr, 1, 0, eEncodingUint, eFormatHexUppercase, \
- {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, \
- LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \
+ { \
+ #reg, nullptr, 1, 0, eEncodingUint, eFormatHexUppercase, \
+ {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, \
+ LLDB_INVALID_REGNUM, lldb_##reg##_x86_64}, \
nullptr, nullptr, nullptr, \
-}
+ }
namespace {
``````````
</details>
https://github.com/llvm/llvm-project/pull/76255
More information about the lldb-commits
mailing list