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/include/lldb/Core/DumpRegisterInfo.h lldb/include/lldb/Core/FormatEntity.h 
lldb/include/lldb/Target/DynamicRegisterInfo.h 
lldb/include/lldb/Target/RegisterTypeBuilder.h 
lldb/include/lldb/Target/Target.h lldb/source/Core/DumpRegisterInfo.cpp 
lldb/source/Core/DumpRegisterValue.cpp lldb/source/Core/FormatEntity.cpp 
lldb/source/Plugins/Process/Utility/RegisterFlagsDetector_arm64.cpp 
lldb/source/Plugins/Process/Utility/RegisterFlagsDetector_arm64.h 
lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_riscv32.cpp 
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp 
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h 
lldb/source/Plugins/RegisterTypeBuilder/RegisterTypeBuilderClang.cpp 
lldb/source/Plugins/RegisterTypeBuilder/RegisterTypeBuilderClang.h 
lldb/source/Target/Target.cpp lldb/unittests/Core/DumpRegisterInfoTest.cpp 
lldb/include/lldb/Utility/RegisterTypeFlags.h 
lldb/source/Utility/RegisterTypeFlags.cpp 
lldb/unittests/Utility/RegisterTypeTest.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/unittests/Utility/RegisterTypeTest.cpp 
b/lldb/unittests/Utility/RegisterTypeTest.cpp
index 413b4a7c4..6a6e105e0 100644
--- a/lldb/unittests/Utility/RegisterTypeTest.cpp
+++ b/lldb/unittests/Utility/RegisterTypeTest.cpp
@@ -133,11 +133,13 @@ TEST(RegisterTypeFlagsTest, RegisterTypeFlagsPadding) {
 TEST(RegisterFieldsTest, ReverseFieldOrder) {
   // Unchanged
   RegisterTypeFlags rf("", 4, {make_field(0, 31)});
-  ASSERT_EQ(0x12345678ULL, (unsigned long 
long)rf.ReverseFieldOrder(0x12345678));
+  ASSERT_EQ(0x12345678ULL,
+            (unsigned long long)rf.ReverseFieldOrder(0x12345678));
 
   // Swap the two halves around.
   RegisterTypeFlags rf2("", 4, {make_field(16, 31), make_field(0, 15)});
-  ASSERT_EQ(0x56781234ULL, (unsigned long 
long)rf2.ReverseFieldOrder(0x12345678));
+  ASSERT_EQ(0x56781234ULL,
+            (unsigned long long)rf2.ReverseFieldOrder(0x12345678));
 
   // Many small fields.
   RegisterTypeFlags rf3(

``````````

</details>


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

Reply via email to