[Lldb-commits] [lldb] [LLDB] Fix DW_OP_implicit_value GetOpcodeDataSize() error (PR #201344)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 3 23:19:52 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/Expression/DWARFExpression.cpp lldb/unittests/Expression/DWARFExpressionTest.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/Expression/DWARFExpressionTest.cpp b/lldb/unittests/Expression/DWARFExpressionTest.cpp
index fe379ebbc..c636f2837 100644
--- a/lldb/unittests/Expression/DWARFExpressionTest.cpp
+++ b/lldb/unittests/Expression/DWARFExpressionTest.cpp
@@ -623,11 +623,11 @@ TEST(DWARFExpression, DW_OP_implicit_value) {
   EXPECT_THAT_EXPECTED(
       Evaluate({DW_OP_implicit_value, bytes, 0x11, 0x22, 0x33, 0x44}),
       ExpectHostAddress({0x11, 0x22, 0x33, 0x44}));
-  
+
   // Verify that GetOpcodeDataSize correctly skips DW_OP_implicit_value
   // (ULEB128 length + 1-byte data block)
-  std::vector<uint8_t> expr = {DW_OP_implicit_value, 1, 0x11,
-                               DW_OP_addr, 0x10, 0x20, 0x30, 0x40};
+  std::vector<uint8_t> expr = {
+      DW_OP_implicit_value, 1, 0x11, DW_OP_addr, 0x10, 0x20, 0x30, 0x40};
   DataExtractor extractor(expr.data(), expr.size(), lldb::eByteOrderLittle,
                           /*addr_size*/ 4);
   DWARFExpression dwarf_expr(extractor);

``````````

</details>


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


More information about the lldb-commits mailing list